用崇高的文字注释掉一段代码的快捷方式 [英] Shortcut to comment out a block of code with sublime text
本文介绍了用崇高的文字注释掉一段代码的快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用崇高的文字注释掉一段代码.
I want to comment out a block of code in sublime text.
我在RailsCasts中看到了它,但不要认为他使用崇高的文字...来做以下事情...
I see it in RailsCasts, but don't think he uses sublime text ... to do the following ...
if (uncommented)
some uncommented example
# if (commented)
# some commented example code
# end
end
崇高文本中是否存在可用于插入#的代码块的快捷方式?
Is there a shortcut in sublime text that I can use to insert the block of #'s?
推荐答案
注释掉或取消所选文本或当前行的快捷方式:
The shortcut to comment out or uncomment the selected text or current line:
- Windows: Ctrl + /
- Mac:命令⌘ + /
- Linux: Ctrl + Shift + /
- Windows: Ctrl+/
- Mac: Command ⌘+/
- Linux: Ctrl+Shift+/
或者,使用菜单:Edit > Comment
对于块注释,您可能要使用:
For the block comment you may want to use:
- Windows: Ctrl + Shift + /
- Mac:命令⌘ + Option/Alt + /
- Windows: Ctrl+Shift+/
- Mac: Command ⌘+Option/Alt+/
这篇关于用崇高的文字注释掉一段代码的快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文