Keyboard Shortcut to Comment Code in Script EditorWhen I am developing a script, it is sometimes necessarry to comment out a block of code and re-write it for performance or quality reasons.
I do this frequently and it is time consuming to comment the code manually, or to go through the context menu>Advanced>Comment Block/Uncomment Block.
Please allow for user to set a keyboard shortcut for this.
I would recommend ctrl+k+c (Comment block) and ctrl+k+u (Uncomment block) as these are the defaults in Visual Studio.
ScriptingRe: Keyboard Shortcut to Comment Code in Script Editor@Jeff_Perkinson , where can I find a tutorial/sceenshot how to define the shortcuts for international keyboards?
Re: Keyboard Shortcut to Comment Code in Script EditorWorks great, thanks!
Re: Keyboard Shortcut to Comment Code in Script Editor - Status changed to: DeliveredWith the release of JMP 16 the keyboard shortcuts below will comment and uncomment blocks.
For Windows, the shortcuts are Ctrl + / (Comment Block) and Ctrl + Shift + / (Uncomment Block). On some international keyboards (like German), a shortcut may
not be defined and can be set in the menu customization editor.
For Mac, the shortcuts are Cmd + / (Comment Block) and Cmd + Alt + / (Uncomment Block). On some international keyboards (like German), the Shift key may be
needed, but this may be intuitive since the shift key would be needed to type those characters anyway for those keyboards.
Re: Keyboard Shortcut to Comment Code in Script EditorYes, thanks @Justin_Chilton , using both now!
Re: Keyboard Shortcut to Comment Code in Script EditorThanks @Justin_Chilton! Not sure what I did wrong because I thought I tried that right before posting last week without success, but it works now!
Re: Keyboard Shortcut to Comment Code in Script EditorHi @ih,
This is already available in the JMP 16 EA, if you are an EA customer. If not, it should still be there when JMP 16 is released.
On Windows, the shortcuts are Ctrl+/ to comment, and Ctrl+Shift+/ to uncomment. And on Mac, it is Cmd+/ and Cmd+Alt+/.
Thanks,
Justin
Re: Keyboard Shortcut to Comment Code in Script EditorHopefully this makes it into JMP 16!
Re: Keyboard Shortcut to Comment Code in Script Editor@Craige_Hales, a reformat shortcut is already available via Ctrl + M on Windows and Cmd + M on Mac. The full keyboard shortcut list can be found in the Quick Reference Card
Re: Keyboard Shortcut to Comment Code in Script EditorMaybe add keyboard shortcut for reformat block at the same time. They are in the same context menu.
Re: Keyboard Shortcut to Comment Code in Script Editor - Status changed to: In DevelopmentUnfortunately this didn't make it in to JMP 15 but will be in a future release.
Re: Keyboard Shortcut to Comment Code in Script EditorDefinitely would use a shortcut to Comment Block code, it would be super handy. Surprised it isn't a feature already.
Re: Keyboard Shortcut to Comment Code in Script EditorI would add to this the keyboard shortcuts for the ability to collapse and expand code blocks
Re: Keyboard Shortcut to Comment Code in Script EditorI would much rather have a keyboard shortcut for commenting line or block of lines (Ctrl+/) is the standard in almost all text editors. Still going to Kudo though.
Re: Keyboard Shortcut to Comment Code in Script Editorah comment/uncomment is in the Edit menu:
