开发者

Insert generic template to Eclipse by keyword trigger

Is there any build in function inside eclipse that allows you to preset certain generic text/code template for later use by trigger a certain keyword?

Lets say I have a boilerplate of html 开发者_高级运维which I always use. So the next time I want to use it, I only want to do something like "..html5template" which would trigger the preset template.

Thanks


I don't have any HTML editor installed into my Eclipse instance, but most text editors support defining templates (e.g. in case of Java editors you could visit the General/*Java*/Editor/*Templates* preference page), and there such templates can be defined, that could be inserted using content assist with a selected keyword.

So I would open the preferences dialog, and search for a page named Template or Templates.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜