简体   繁体   中英

Textmate shortcut for add/remove HTML or JavaScript comments

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

In TextMate ver. 1.5.10 Alt-Command-/ does not toggle comment state (add, remove) It strictly adds. (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. (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-/' …

Antoine

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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