keep open file when new file file open vs code default

In VS Code, the default behavior is to keep the previously opened file(s) open in the editor when you open a new file. This is a useful feature as it allows you to switch between multiple files quickly and easily without having to reopen them.

However, if you prefer to close the previously opened file(s) when you open a new file, you can change this behavior by modifying the "workbench.editor.enablePreview" setting in VS Code.

To disable file preview and always open files in an editor tab, set "workbench.editor.enablePreview" to false in your user or workspace settings:                                


    "workbench.editor.enablePreview": false



With this setting enabled, when you open a new file, it will always be opened in a new editor tab, and the previously opened file(s) will be closed.

No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...