【问题标题】:Alternatives to "//" comments in eclipse.eclipse 中“//”注释的替代品。
【发布时间】:2016-03-20 08:29:28
【问题描述】:

这些在eclipse中叫什么。默认情况下它们是蓝色的。 它们通常描述类/方法的作用,并且在每行前面都有一个 astrix。

制作这些的键盘快捷键是什么。

我一直在使用“//”cmets,它们是战利品。

是时候升级了。

谢谢。

/**
     * Returns a Button with save icon and proper styling applied.
     * Also adds a keyboard shortcut for Enter key.
     */
    public static final Button createSaveButton() { return createSubmitButton("Save");  }

【问题讨论】:

标签: java eclipse comments


【解决方案1】:

它们被称为 Javadoc cmets。你不需要它的快捷方式。只需在类/方法上方输入/** 并点击Enter。 Eclipse会自动为方法参数、返回值等创建模板。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-10-01
    • 1970-01-01
    • 1970-01-01
    • 2016-10-06
    • 2019-05-12
    • 2011-08-09
    • 2014-11-05
    • 2019-06-30
    相关资源
    最近更新 更多