Storing code snippets in eclipse

前端 未结 7 1554
你的背包
你的背包 2020-11-29 17:19

I\'m a recent semi-convert to Eclipse after 20 years of using vi and gvim. One of the things I miss about gvim is that I could cut a bunch of different snippets of code int

7条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 17:44

    Use Eclipse Snipmatch (Part of Eclipse for Java Developers Package).

    • Works very well for Java code snippets but also works for any other language like HTML, ABABP, PHP etc.
    • You can convert any code fragment from your editor directly to a code template. Highlight the code you'd like to convert to a snippet, context menu "create snippet", complete the form and done.
    • snippets can be shared via Git repositories with your team members

    Manual: https://www.eclipse.org/recommenders/manual/#snipmatch

    Installation: https://marketplace.eclipse.org/content/snipmatch

提交回复
热议问题