开发者

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


  1. Select the Code to Comment.
  2. Press Ctrl+K.
  3. Press Ctrl+C.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜