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:
No comments:
Post a Comment