Visual Studio Code closes file alone

Asked

Viewed 1,466 times

1

In Visual Studio Code when I open a file and soon after I open another file I will work it automatically closes the first opened file. How do I stop it?

  • Have you tried looking in Windows event logs what the cause of the shutdown is?

1 answer

3


Maybe you are opening the file only in preview/preview and not editing. To make the tab fixed without closing, try to check this. On the other hand, you can enter settings/tools and adjust "Tabs and Windows", which would be the tabs and windows in your Visual Studio.

inserir a descrição da imagem aqui

  • 2

    Show!! That’s what it was. Actually as I am using Visual Studio Code I went to File > Preferences > User Settings and added the line "Workbench.editor.enablePreview": false

  • 1

    @Felipecoelho Glad it worked out! Need, give a shout here! Abs.

  • @Viana, thank you! gave it right!

Browser other questions tagged

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