How can multiple files be opened in Visual Studio Code (VSC)? How can multiple files be opened in Visual Studio Code (VSC)? windows windows

How can multiple files be opened in Visual Studio Code (VSC)?


In VS Code, if you click once on a file, it opens it in a temporary tab. This is helpful if you are looking into a bunch of files searching for something, without opening every single one of them.

If you want to open a file in a new tab that persists until closed manually, double click on the file.

You can also persist a tab that was previously created as a temporary tab by double clicking on the tab. Note that temporary tabs have a cursive title, while normal tabs do not.


Others have mentioned double-clicking the file in order to open it, however, I will suggest an alternative approach:

Within your settings, under workbench, set:

"workbench.editor.enablePreview": false"workbench.editor.enablePreviewFromQuickOpen": false,

This will allow you to open the files with a single click, as opposed to double-clicking. It may seem minute, but it was incredibly annoying to have to double-click every single file.


VS Code, by default, keep this option enabled to open a file in a temporary file, this feature comes in handy when you want to just take a look at some code.

If you want to open a file in a new tab, just double click on the tab or double click on the folder you want to open from explorer or once the file is opened press the short-cut key ctrl + k + enter.


You can even disable this option in File > Preferences > Settings, under the user settings.

Paste this code in your user's setting.

"workbench.editor.showTabs": false