我认为这很容易实现,但到目前为止我还没有找到评论/取消评论快捷方式的解决方案Java class editor
and jsf faceted webapp XHTML file editor
:
- to quickly comment/uncomment a line (like ctrl + d is for removing single line)
- 能够选择多行并注释/取消注释
例如 :
单行java代码, from :
private String name;
into
//private String name;
多行java代码, from :
private String name;
private int age;
into
/*private String name;
private int age;*/
单行xhtml代码, from :
<h:inputText ... />
into
<!-- h:inputText ... / -->
多行xhtml代码, from :
<h:inputTextarea
rows="xx"
cols="yy"
...
/>
into
<!-- h:inputTextarea
rows="xx"
cols="yy"
...
/ -->
For single line comment you can use Ctrl + / and for multiple line comment you can use Ctrl + Shift + / after selecting the lines you want to comment in java editor.
On Mac/OS X you can use ⌘ + / to comment out single lines or selected blocks.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)