VS Code Ctrl + S remove formatting - react

Viewed 2159

I am working on a React project using Visual Studio Code. when I press Ctrl+S in the Visual Studio Code to save the file. It removes all the Javascript formatting or scatters all the code in the file.

Any help would be appreciated.

my settings.json is

{
    "window.zoomLevel": 1,
    "javascript.format.enable": false,
    "editor.formatOnSave": false
}
1 Answers

Check the extension you installed.

For me, disable "JS-CSS-HTML Formatter" extension solved the issue.

Related