tramm
V2EX  ›  Java

IDEA 怎么给方法添加自动注释?

  •  
  •   tramm · Apr 10, 2020 · 4084 views
    This topic created in 2231 days ago, the information mentioned may be changed or developed.

    类似 Eclipse 中的Automatically add comments for new methods and types.

    网上搜到的都是用 live templates 。还是要输入快捷键的。

    或者有没有插件?

    7 replies    2020-04-10 16:41:16 +08:00
    jimmyismagic
        1
    jimmyismagic  
       Apr 10, 2020
    /**回车
    tyhuohuo8
        2
    tyhuohuo8  
       Apr 10, 2020 via iPhone
    楼上正解
    tramm
        3
    tramm  
    OP
       Apr 10, 2020
    @jimmyismagic 自动的方式啊。就是创建方法后,自动在上面

    /**
    * xxx
    */
    jzbax1230
        4
    jzbax1230  
       Apr 10, 2020
    添加模板
    CheckTime
        6
    CheckTime  
       Apr 10, 2020
    手动 Alt + Enter 不香吗
    daimazha
        7
    daimazha  
       Apr 10, 2020
    Preferences | Editor | File and Code Templates
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1174 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 17:53 · PVG 01:53 · LAX 10:53 · JFK 13:53
    ♥ Do have faith in what you're doing.