Sublime Text 2 中注释行的键盘快捷键 [英] Keyboard shortcut to comment lines in Sublime Text 2

查看:34
本文介绍了Sublime Text 2 中注释行的键盘快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sublime Text 2 中,我如何在评论?
此操作是否有键盘快捷键?

In Sublime Text 2, how do I enclose a selection in a comment?
Is there a keyboard shortcut for this action?

推荐答案

默认情况下,Linux/Windows 上英文键盘的快捷键是 Ctrl+Shift+/ 切换块注释,Ctrl+/ 切换行注释.

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.

如果你进入Preferences->Key Bindings - Default,你可以找到所有的快捷键,下面是注​​释行.

If you go into Preferences->Key Bindings - Default, you can find all the shortcuts, below are the lines for commenting.

{ "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } },

这篇关于Sublime Text 2 中注释行的键盘快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆