Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

People also ask

How can see method call in IntelliJ?

on the toolbar in the Find tool window or press Ctrl+Alt+Shift+F7 . While in the Find tool window, you can also use the Preview area to check the places where the usages were found, to see a call hierarchy for methods, data flow for fields, and so on.


For Windows or Linux users, Ctrl+Shift+Enter.

For macOS/OS X users, ⌘ Command+⇧ Shift+Enter.

That finishes the statement you're currently writing. Try it in a few different situations, like in if statements, for loops etc, and you'll see that it'll complete the line and open some curly braces for you if necessary.


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


if you want always have it just do this

enter image description here