What is the shortcut to comment multiple lines with /* ... */ in Aptana Studio 3 on Mac?
Here are the few shortcuts to comment code, which works great on Windows.
- Ctrl-/ to add or remove // for a single line of code, or for multiple selected lines
- Ctrl-/ to add/remove // for a single line of code, or for multiple 开发者_开发百科selected lines
- Ctrl-shift-/ to add /* */ around selected code
The Mac alternative of the Ctrl-/ is Command-/
What is the Mac alternative of the Ctrl-shift-/ for Mac?
Related Question: Finding Shortcuts in Aptana Studio 3.0 to Comment Code
Check Commands > Source > Comments. A number of shortcuts are listed there.
On Mac, you search for ⌘ Cmd+Shift+C.
The shortcut generates multi line comments with //
.
// for a single line of code(L for Line)
Alt + C + L
/* */ around selected code(B for Block)
Alt + C + B
- Select the Code to Comment.
- Press Ctrl+K.
- Press Ctrl+C.
精彩评论