live-templates

How configure Intellij Idea javadoc templates?

本秂侑毒 提交于 2019-11-27 04:30:26
I have some method: public int getSomeField() I want to generate javadoc like this: /** * Gets {someField} * * @return value of {someField} */ Where {someField} is placeholder for field name. It is possible to create this templates for Intellij Idea (may be as live template)? Will Humphreys Bring up the Generate menu (Cmd+N on Mac, Alt+Insert on Windows) Click the ellipsis in the top right hand corner. Click the plus in the top left corner and create a new template. Copy the contents of the old template into the new template and add the following lines to the top of it. /** * Gets $field.name

How configure Intellij Idea javadoc templates?

十年热恋 提交于 2019-11-26 11:12:37
问题 I have some method: public int getSomeField() I want to generate javadoc like this: /** * Gets {someField} * * @return value of {someField} */ Where {someField} is placeholder for field name. It is possible to create this templates for Intellij Idea (may be as live template)? 回答1: Bring up the Generate menu (Cmd+N on Mac, Alt+Insert on Windows) Click the ellipsis in the top right hand corner. Click the plus in the top left corner and create a new template. Copy the contents of the old