I want VS Code to automatically correct spaces when saving a JSON file (I do not want this rule to be applied to any other types of files, but this is not crucial)
Example:
// before saving
{
"someField": "value"
}
// after saving
{
"someField": "value"
}
I’ve searched the internet, and there are lots of articles on how to remove trailing spaces automatically when saving a file. But this is not the case
New contributor
Кудрин Максим is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.