andyfaff THere isn't a keyboard shortcut and you can't do multiline comments a la c: /* comment */ but you can select the lines you want to comment and Edit->Commentize Log in or register to post comments March 7, 2012 at 01:01 pm - Permalink
jjweimer andyfaff wrote: ...but you can select the lines you want to comment and Edit->Commentize ... and on the Mac you can map the Commentize / Decommentize commands directly to your preferred keystrokes through the Keyboard Preference pane. EDIT: See the posting at this link ... http://www.igorexchange.com/node/2543 -- J. J. Weimer Chemistry / Chemical & Materials Engineering, UAHuntsville Log in or register to post comments March 8, 2012 at 07:49 am - Permalink
ysspatil In windows, you can press Alt+e+o (after selecting the multiple lines) Log in or register to post comments July 29, 2014 at 11:03 am - Permalink
In reply to by ysspatil azeigle Great tip, thanks! Note that "Alt+e, o" simply opens the edit menu and selects "Commentize". So it's not necessary to memorize the shortcut as long as you know where to find it. Log in or register to post comments May 4, 2020 at 12:00 pm - Permalink
johnweeks In Igor 8, cmd-/ or ctrl-/ will commentize selected lines, and cmd-\ or ctrl-\ decommentizes. That would be cmd on Mac, ctrl on Windows. Log in or register to post comments May 4, 2020 at 01:10 pm - Permalink
thomas_braun The closest to multiline comments is surrounding the code with #if 0 ignored coded #endif but I would stay away from it as it makes messy code. Log in or register to post comments May 5, 2020 at 05:06 am - Permalink
/*
comment
*/
but you can select the lines you want to comment and Edit->Commentize
March 7, 2012 at 01:01 pm - Permalink
... and on the Mac you can map the Commentize / Decommentize commands directly to your preferred keystrokes through the Keyboard Preference pane.
EDIT: See the posting at this link ... http://www.igorexchange.com/node/2543
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
March 8, 2012 at 07:49 am - Permalink
July 29, 2014 at 11:03 am - Permalink
In reply to by ysspatil
Great tip, thanks! Note that "Alt+e, o" simply opens the edit menu and selects "Commentize". So it's not necessary to memorize the shortcut as long as you know where to find it.
May 4, 2020 at 12:00 pm - Permalink
In Igor 8, cmd-/ or ctrl-/ will commentize selected lines, and cmd-\ or ctrl-\ decommentizes. That would be cmd on Mac, ctrl on Windows.
May 4, 2020 at 01:10 pm - Permalink
The closest to multiline comments is surrounding the code with
ignored coded
#endif
but I would stay away from it as it makes messy code.
May 5, 2020 at 05:06 am - Permalink