/*
*
* This is a long comment. I broke it into lines, but that made it impossible to edit without screwing up the formatting. Is there a way to make Netbeans add line breaks automatically?
*
*/
Run Code Online (Sandbox Code Playgroud)
读:这是一个很长的评论.我把它分成了几行,但这使得在不搞砸格式化的情况下无法进行编辑.有没有办法让Netbeans自动添加换行符?
有时在我的代码中,我喜欢注释掉一段代码以供临时使用/参考等,例如:
/*
blah
*/
Run Code Online (Sandbox Code Playgroud)
但是如果我想在该块中插入一行,当我点击回车时,它会自动在下一行放一个*就像我在做一个DocBlock一样,这是一个小麻烦.这发生在每个输入键上:
/*
blah<enter pressed here>
*
*/
Run Code Online (Sandbox Code Playgroud)
现在我认为这种"自动格式化"只应在开场评论使用格式/**(两颗星)的情况下进行.多行注释在DocBlocks之前很长一段时间,所以我不确定为什么它强迫这些"老派"标准直接/**/评论有花哨的不需要的额外DocBlock*!
有没有办法:
干杯