Common code snippets / templates in eclipse

I am currently evaluating eclipse after using textmate for all of my developments over the years. what I missed in the eclipse, and what I can not find for the solution are some general patterns:

I use PDT for developing JavaScript and PHP, and it supports code templates. however, in my projects I write a large number of shell scripts, yml configuration files, xml files, gnu scripts, etc. I write the source documentation for all of these scripts using a common syntax (similar to robodoc), and you can save a lot of time when you can insert doc blocks using templates. however, apart from PDT, not all plugin editors support templates.

Is there a general way to store code snippets / templates in eclipse that will work in all editors? I think it should be possible to implement using the eclipse monkey - however, it seems that the development of the monkey has been stopped?

I am using Eclipse 3.4.0.

+3
source share
2 answers

If you have the Web Tool (WTP) plugins installed, you should have a Snippets view, which is not an editor-independent place to collect reusable snippets. You can create and place your fragments there and share them using the "boxes". Double-clicking or dragging a fragment element inserts it into the active editor.

- .

+6

Snip2Code? , Eclipse, , Eclipse .

http://www.snip2code.com/Static/Downloads

0

Source: https://habr.com/ru/post/1708373/


All Articles