What is the IntelliJ shortcut key to create a java

2019-01-30 20:36发布

In Eclipse, I can press Alt+Shift+J and get a javadoc comment automatically generated with fields, returns, or whatever would be applicable for that specific javadoc comment. I'm assuming that IntelliJ IDEA has this feature. Can anyone tell me if there is a keyboard shortcut for this?

3条回答
▲ chillily
2楼-- · 2019-01-30 21:13

Shortcut Alt+Enter shows intention actions where you can choose "Add Javadoc".

查看更多
Anthone
3楼-- · 2019-01-30 21:20

You can use the action 'Fix doc comment'. It doesn't have a default shortcut, but you can assign the Alt+Shift+J shortcut to it in the Keymap, because this shortcut isn't used for anything else. By default, you can also press Ctrl+Shift+A two times and begin typing Fix doc comment in order to find the action.

查看更多
The star\"
4楼-- · 2019-01-30 21:25

Typing /** + then pressing Enter above a method signature will create Javadoc stubs for you.

查看更多
登录 后发表回答