如题:
今天使用了sublime text中的code snippet功能,感觉非常的强大,可以自己扩展自己的规则
但是我是开发java的,一般使用ecplise比较多
PS:其实也考虑过使用sublime text开发java,但是某些功能还是ecplise比较方便,比较它是专门为java开发定制的
所以想请问一下eclipse中如何实现类似sublime text 中的code snippet功能,最好有详细的说明,或者是文章的链接
比如:我想打一个iter
就可以直接生成Iterator<E> it = obj.iterator();
This should not exist, but you can customize the template in the settings and hit it to achieve the above functions
You can try intellij idea, which has a live template function, which is snippet.
You can see the java/template mentioned above by opening it and taking a look. I didn’t notice that it was already deleted. It seems that I can’t delete it on my mobile phone. This.