Visual Studio Code SAVE problems

Asked

Viewed 1,097 times

-1

I am creating a project in React-Native More when saving the project or changes in the App.Js folder, the following error occurs as the image defaces the project itself in the tags, causing space between some. How to solve?

inserir a descrição da imagem aqui

Whatever, CRTRL+S, it always spaces some project tags

inserir a descrição da imagem aqui

I find it horrible because the auto save option is triggered, compiling the project in React-Nturn with errors, I can only emulate on the physical device if I go in the project root folder in Notepadd++, example below, enter and save and refresh happens normally.

inserir a descrição da imagem aqui

Some solution to serve as examples for other people?

  • 1

    I believe it’s being caused by some extent.

  • If you use some extension that when you save it formats the code you have to remove the formatting of that type of file. Maybe you use Beautify or another one of the kind that formats being aquivo that way. You can try removing the option of this format extension when you save the file.

2 answers

2

I was exactly with this same problem. In my case I fixed disabling the extension JS-CSS-HTML Formatter.

0

disable might be a good output, however if you use this extension for some reason it might not be the best option, then I would suggest disabling the options that organize the code when you save your file. for this in Visual Codo just press F1, type Formatter Config, the 'Formatter Config', and modify the first line of "onSave": true to "onSave": false restart Visual Code.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.