Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JetBrains IDEs: How to add semicolon automatically?

Is there a way to add semicolons automatically when inserting a function in JetBrains IDEs? such as Android Studio and IntelliJ IDEA etc.

the suggestion
(in the example here I am using Flutter in Android Studio)

When I press Enter it adds the function, but the semicolon is missing. I know that it's not a big deal nor a problem but why not?! Maybe someone has the answer.

after inserting the suggestion, it comes without a semicolon

like image 859
Yahia Avatar asked Oct 12 '25 07:10

Yahia


1 Answers

You can try using Ctrl-Shift-Enter (Windows/Linux) or Command-Shift-Enter (macOS).

Feel free to upvote on the related request in JetBrains issues tracker https://youtrack.jetbrains.com/issue/IDEA-260065

like image 183
Egor Klepikov Avatar answered Oct 16 '25 00:10

Egor Klepikov