- Open VS Code.
- Click on File.
- Then find Preferences -> settings.
- Click on the Text Editor in the left side menu.
- Then Click on Formatting.
- Locate the Format On Type Setting.
- Check or Uncheck: Controls whether the editor should automatically format the line after typing.