In Sublime Text 2, how do I enclose a selection in a comment?
Is there a keyboard shortcut for this action?
标签:
sublimetext2
相关问题
- How to run code in Sublime text 2 python
- Why is Sublime Package Control not working?
- C++ 11 code compiles with `clang++`, but not with
- White text in Sublime Text
- mongo --shell file.js and “use” statement
相关文章
- trouble getting sublime to execute with linux term
-
Perl with Sublime Text 2:
not working - Show info about current character in status bar in
- How can a Sublime Text build system access the con
- In Sublime Text 3, how to have shortcuts for “Buil
- Use vim syntax definition with sublime-text2
- Does Sublime Text support live editing of CSS/SASS
- Move cursor on middle button paste in Sublime Text
By default on Linux/Windows for an English keyboard the shortcut is Ctrl+Shift+/ to toggle a block comment, and Ctrl+/ to toggle a line comment.
If you go into
Preferences->Key Bindings - Default
, you can find all the shortcuts, below are the lines for commenting.I'd like to add, that on my mac by default block comment toggle shortcut is cmd+alt+/
For German keyboards use ctrl+shift+# to toggle a block comment and ctrl+# to toggle a line comment.
The shortcut in
Preferences->Key Bindings - Default
is set to Ctrl+Shift+/ and Ctrl+/, but to actually use the functions, press the keys stated above.