简体   繁体   English

用于添加/删除HTML或JavaScript注释的Textmate快捷方式

[英]Textmate shortcut for add/remove HTML or JavaScript comments

Textmate中是否有用于在HTML / JavaScript中快速添加/删除注释的快捷方式?

In TextMate ver. 在TextMate版本中。 1.5.10 Alt-Command-/ does not toggle comment state (add, remove) It strictly adds. 1.5.10 Alt-Command- /不会切换注释状态(添加,删除),而是严格添加。 (at least from my experience) (至少根据我的经验)

To answer the question more accurately, if you select the text block you wish to add or remove comment - clicking command+/ will toggle state. 为了更准确地回答问题,如果您选择要添加或删除注释的文本块,请单击“ Command + /”将切换状态。 (add, remove) (添加,删除)


One thing to note : this also indents your text.. Anyone know how to eliminate this behavior when using those particular keys? 需要注意的一件事 :这也会使您的文本缩进。任何人都知道如何消除使用这些特定键时的这种行为? ( command+/ ) 命令+ /

Select the block you want to comment or decomment and then 'Cmd-Shift-/' … 选择要注释或分解的块,然后选择“ Cmd-Shift-/” ...

Antoine 安托万

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM