Yahia
Yahia

Reputation: 81

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

Upvotes: 4

Views: 1719

Answers (1)

Egor Klepikov
Egor Klepikov

Reputation: 5809

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

Upvotes: 5

Related Questions