What is the IntelliJ shortcut key to create a javadoc comment?

前端 未结 3 859
旧巷少年郎
旧巷少年郎 2020-12-22 20:42

In Eclipse, I can press Alt+Shift+J and get a javadoc comment automatically generated with fields, returns, or whatever would be applicable

相关标签:
3条回答
  • 2020-12-22 21:07

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

    0 讨论(0)
  • 2020-12-22 21:21

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

    0 讨论(0)
  • 2020-12-22 21:23

    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.

    0 讨论(0)
提交回复
热议问题