How to add semicolon after method call when inside parameter list in IntelliJ IDEA?

后端 未结 3 881
孤街浪徒
孤街浪徒 2020-12-12 18:25

I\'m finally making the voyage back to IntelliJ via Eclipse. Currently my Eclipse is set up so that if I currently have a statement such as this (where ^ denotes where my c

3条回答
  •  囚心锁ツ
    2020-12-12 19:16

    You can add a keymap of your own. I added Ctrl+; to my Keymaps for the "Complete Current Statement" action. This saved me an extra key stroke and made it a little bit more intuitive.

    1. Go to Settings > Keymap
    2. In the search box, enter "Complete Current Statement".
    3. Right-click on the entry and select "Add Keyboard shortcut"
    4. With the First Stroke field hightlighted, enter your key combination. E.g., Ctrl+;, which will display as Ctrl+Semicolon
    5. Click OK, and OK to save and exit.

    You can opt to remove or keep the existing mapping. Should look something like this when you're done:

    enter image description here

提交回复
热议问题