【发布时间】:2019-01-05 13:52:17
【问题描述】:
我希望在使用 Ctrl+/ 时使用 cmets,它 适用 用于 Java 但不适用于 Kotlin 代码,我已按照 @ 中所述完成987654321@(注:我用的是Intellij Ultimate 2018.2)
要在 Java 中配置注释行为的设置,请使用注释代码部分中的选项,位于文件 | 代码生成选项卡上。设置/首选项 |编辑 |代码风格 | Java。
在Commented Code 部分标记为Add a space at comment start,
我在Kotlin Code Style中找不到任何评论代码配置
例如Kotlin:
fun main(args: Array<String>) {
// Desired comment
// After Using Ctrl+/
}
但在Java工作:
public class Sample {
public static void main(String[] args) {
// Works fine using Ctrl+/
}
}
【问题讨论】:
-
你找到解决这个问题的方法了吗?
-
仍未解决
标签: java intellij-idea kotlin comments