F
F
Fedor2020-02-18 22:09:47
Visual Studio Code
Fedor, 2020-02-18 22:09:47

How to remove indentation in code when saving in VSCode?

Good evening. There was such a problem. After writing a piece of React application code and pressing Ctrl+S, indents appear:
5e4c3600b7645628023728.jpeg

Because of what an error appears:
5e4c3615ae8f4059950654.jpeg

Erasing indents VSCode stops swearing. But after saving the changes, indents still appear. Please tell me how to remove them. I looked in the settings. But found nothing. Maybe he just wasn't looking.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fedor, 2020-02-18
@Mecitan

The question is cancelled. Everything is solved by adjusting the syntax. (if I understood correctly). Click on the name under the indicated arrow.
5e4c3be6d96d4155952343.jpeg
Select "Setting for matching "JS" files.. Select the desired language and everything will work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question