How to set comments manully for Class, Method and

2019-09-16 14:40发布

There is a checkbox Enable Live Template here, but how to use Class Header in Live Template.

enter image description here

Who knows the best way to set comments manully for Class, Method and Field in Intellij Idea like the Code Template in Eclipse ??

1条回答
forever°为你锁心
2楼-- · 2019-09-16 15:03

File Header.java and Class Header.java corresponds to templates on the neighbour includes tab: File Header.java location

Not sure for what you meant for

set comments manully for Class, Method and Field in Intellij Idea like the Code Template in Eclipse

In Intellij IDEA you can position cursor above declaraion of class/field/method and press /** Enter. This will generate javadoc, for example, for method: @param, @return, @throws, etc. Great instructions on creating new templates are, for example, here: How configure Intellij Idea javadoc templates?

查看更多
登录 后发表回答