I have vscode installed and also the prettier extension. In settings I select the option format on save. However, when saving the formatting of the code does not happen, I have to activate the format manually. how can I solve that ?
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
Update, i just find the solution if anyone is having the same problem i have to add the following lines to user setting json
Press
Ctrl+shift+p
and typePreferences: Open User Settings (JSON)
. In that json file add the following line and save. This should enable so vscode formats the code each time you save.