如何设置注释//和单词之间的空格? [英] How to format comments with one space between // and words?
本文介绍了如何设置注释//和单词之间的空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何以//和单词之间的一个空格自动设置注释的格式?例如,在编辑器中选择格式应将
How to automatically format comments with one space between // and words? For example, selecting format in my editors should convert
// login
转换为//登录
public interface LoginService {
//login // -> // login
SysAdminDO login(LoginForm form);
}
推荐答案
您可能正在寻找设置
编辑器〜>代码样式〜> Java(语言)〜>代码生成
Editor ~> Code Style ~> Java(language) ~> Code Generation
否则,您也可以使用 注释带有行注释 快捷方式
Or else you can alternatively use Comment with line comment shortcut
只需键入一行,然后在该行上使用快捷方式。例如,
Just type a line and on that line use the shortcut. e.g.
String var;
I would make this a comment [Press the shortcut]
// I would make this a comment
这篇关于如何设置注释//和单词之间的空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文