How to open multiple files in VS Code

October 2022 · 3 minute read
Open multiple files in VS Code - Code on screen

XINSTALL BY CLICKING THE DOWNLOAD FILE

To fix various PC problems, we recommend DriverFix:
This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:
  • Download DriverFix (verified download file).
  • Click Start Scan to find all problematic drivers.
  • Click Update Drivers to get new versions and avoid system malfunctionings.
  • Visual Studio Code is a very good source-code editor that was developed by Microsoft and has been used efficiently by clients because of it’s debugging features, the embedded GIT control, and many other useful features.

    There are situations in which you will surely need to open up at least 2 new tabs while working in VS Code, and even though this option should be available easily, users have problems finding it.

    You have the possibility of opening temporary tabs that close automatically, or the option to open files in new tabs that will only be closed once your work on them will be done.

    In today’s article we will discuss some of the best methods to apply in this situation. If you want to find out more details, please read on.

    How do I open multiple files in VS Code?

    1. Modify the VS Code settings

    Code on screen - Open multiple files VS Code

  • Open VS Code -> click File from the upper menu.
  • Choose Preferences from the drop-down list.
  • Click on Settings.
  • A window will appear with the User and Workspace Settings being available.
  • Choose Workspace Settings -> search for workbench.editor.showTabs -> modify the value to True.
  • Note: When the option mentioned above is set to False, then the VS Code will only open one file at a time. If it’s set to True, then you can open as many files as you want in new tabs. See the next method to get a better understanding of how to do so.

    Is your Windows 10 Firewall blocking Visual Studio? Fix it fast with the help of this handy guide.

    2. Use the mouse shortcut to open multiple files

    Coffee mug and mouse - Open multiple files in VS Code

    Even though this might seem like an obvious solution for those of you who have experience in VS Code, this method is very simple to apply.

    If you are in a situation in which you’re searching for a specific part of a file, so you’re going through a bigger set of documents, it is recommended that you open the files in temporary tabs. In order to do so, you will need to click once on a file using your mouse.

    If you want to open a new tab that stays on your screen until you choose to close it manually, then you will need to double-click on the file.

    Conclusion

    In today’s guide we explored some of the best options available for you in order to open multiple files inside VS Code.

    The first step is to make sure that the settings of VS Code allow you to open multiple files, and then you can simply use your mouse to open up either temporary or normal new tabs.

    If this guide has managed to help you understand and control the situation better, or you have any suggestions, please don’t hesitate to contact us and share the information.

    You can do so by using the comment section found below this article.

    READ ALSO:

    ncG1vNJzZmivmaOxsMPSq5ypp6Kpe6S7zGimqZ2eYrq2uNOip6WdXZu2rbHSZq2sZZOksaZ7