I have my editor set to fix all issues upon saving. However, once I saved, it formats the code to fix the issues, then a split second later reverts back to the original unfixed and unformatted code. This started happening after I updated vscode.
Not saying this will be your case, but worth checking:
"editor.formatOnSave": falsesettings.json file :"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
If you don't use ESLint / Prettier installed, then do the opposite, meaning just make sure that formatOnSave is set to true and you don't have other formatters enabled.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With