代码之家  ›  专栏  ›  技术社区  ›  Raw

如何设置注释格式,在//和单词之间留一个空格?

  •  2
  • Raw  · 技术社区  · 7 年前

    //login // login

    public interface LoginService {
        //login // -> // login
        SysAdminDO login(LoginForm form);
    }
    
    1 回复  |  直到 7 年前
        1
  •  2
  •   Naman    7 年前

    编辑器~>代码样式~>Java(语言)~>代码生成

    enter image description here

    或者你也可以使用 带行注释的注释 快捷方式

    enter image description here

    只需键入一行,然后在该行上使用快捷方式。例如

    String var;
    I would make this a comment [Press the shortcut]
    // I would make this a comment