How to add semicolons to Dart code on save automatically?

Viewed 1262

I am coming from languages that don't use semicolons by default and I keep forgetting adding them all the time. Also it's annoying to type ; all the time.

Is there any VS Code plugin that will add semicolons on save automatically?

If it's not possible in VS Code, is it possible in some other editor like IntelliJ or something?

2 Answers

For anyone looking for an answer to this problem, add this to your settings.json in VSCode:

"editor.codeActionsOnSave": {
  "quickfix.insertSemicolon": true,
},
Related