在 Mac 上的 Aptana Studio 3 中使用 /* ... */ 注释多行的快捷方式是什么?
以下是注释代码的几个快捷方式,在 Windows 上效果很好。
- Ctrl-/ 添加或删除 // 对于单行代码或多个选定的行
- Ctrl-/ 添加/删除 // 对于单行代码或多个选定的行
- Ctrl-shift-/ 添加/ * */ 围绕选定的代码
Ctrl-/ 的 Mac 替代方案是 Command-/
对于 Mac,Ctrl-shift-/ 的 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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
检查命令>来源>>评论。那里列出了许多快捷方式。
Check Commands > Source > Comments. A number of shortcuts are listed there.
在 Mac 上,您搜索 ⌘ Cmd+Shift+C。
该快捷方式使用
//
生成多行注释。On Mac, you search for ⌘ Cmd+Shift+C.
The shortcut generates multi line comments with
//
.// 对于单行代码(L 代表行)
/* */ 围绕所选代码(B 代表块)
// for a single line of code(L for Line)
/* */ around selected code(B for Block)
Mac 上 VScode 多行注释
/* */
Mac 上 VScode 单行注释
//
VScode multiple line comments on Mac
/* */
VScode single line comment on Mac
//