Storing code snippets in eclipse

前端 未结 7 1555
你的背包
你的背包 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条回答
  •  旧时难觅i
    2020-11-29 17:40

    You might want to store those two snippets into a code template, as explained in this tutorial.

    And do not forget about the possibility to quickly execute any kind of java code snippets in a scrapbook (not exactly what you want, but it can come in handy at times)

    Newtopian adds (in the comments)

    In fact templates become much more powerful by adding variables and tabstops within, so your example above would become dbHandle ctrl+space. It would copy snippets from both parts and place your cursor right in the middle.

提交回复
热议问题