To deactivate automatic code formatting in Visual Studio Code, we can follow these steps:

  • Open Visual Studio Code.
  • Go to File > Preferences > Settings (or use the keyboard shortcut Ctrl + , )
  • In the search bar at the top, type “format on save” and look for the setting “Editor: Format On Save”.
  • Uncheck the checkbox next to “Editor: Format On Save” to deactivate automatic code formatting on save.

After completing these steps, Visual Studio Code will no longer automatically format our code when we save a file.

By Shabazz

Software Engineer, MCSD, Web developer & Angular specialist , BizDevOps

Leave a Reply

Your email address will not be published. Required fields are marked *