datadump
V2EX  ›  问与答

新手请教 intellij IDEA 代码补全

  •  
  •   datadump ·
    PRO
    · Jun 23, 2021 · 1828 views
    This topic created in 1984 days ago, the information mentioned may be changed or developed.
    vscode 里面可以自定义“用户代码片段”,存放在:C:\Users\***\AppData\Roaming\Code\User\snippets 里面,
    要是其它同事想用,copy 一份过来就好了;
    visualstudio 更方便,在 setting 里面直接添加 snippet 文件夹;


    IDEA 不是太熟悉,我搜到的资料都是在 settings->"live templates"里面手动添加,只能一个个添加,没有看到导入文件夹功能。
    (虽然 idea 有预设的模板,也有 kite,tabnine 等 ai 插件,但是肯定远远不够用,维护自己常用的代码片段或者类很有必要)

    大家是怎么解决 snippet 管理的?或者有没有第三方工具?
    jeffxjh
    jeffxjh
    Jun 23, 2021
    1
    账号可以同步 live templates
    akring
    akring
    Jun 23, 2021
    2
    因为日常需要使用 Dash,所以就没有额外引入其他的工具了,直接用 Dash 提供的。代码片段库直接放到了 iCloud 上,所有 Mac 设备都能同步。
    datadump
    datadump
    OP
    PRO
    Jun 25, 2021
    3
    @jeffxjh @akring 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:28 · PVG 03:28 · LAX 11:28 · JFK 14:28
    ♥ Do have faith in what you're doing.