How do I open multiple instances of Visual Studio Code?

前端 未结 17 2803
长情又很酷
长情又很酷 2020-12-12 09:15

Today Microsoft released the Visual Studio Code file/folder editor.

The first limitation is it appears to be a single-instance application.

Is there a way of

相关标签:
17条回答
  • 2020-12-12 10:03

    In 2019, it will automatically open a new session, new instance of vs-code. By type

          C:\Apache24\htdocs\json2tree>code .
    

    at the command window, under your project root folder.

    first cd into your project folder,

            C:\Apache24\htdocs\json2tree>
    

    then, type

             code .
    
    0 讨论(0)
  • 2020-12-12 10:06

    Select menu FileNew Window from the menu and then open the other folder in the new window.

    0 讨论(0)
  • 2020-12-12 10:06

    You can also create a shortcut with an empty filename

    "%LOCALAPPDATA%\Local\Code\Code.exe" ""
    
    0 讨论(0)
  • 2020-12-12 10:14

    Easiest when you don't know the CTRL+SHIFT+N shortcut is to use the menu: File, New Window

    0 讨论(0)
  • 2020-12-12 10:16

    Ctrl + Shift + N will open a new window, while Ctrl+K then releases the keys, and pressing O would open the current tab in a new window. You can then use menu FileOpen Folder to have two instances of Visual Studio Code with different folders in each window.

    + Shift + N and + K for Mac.

    List of helpful keyboard shortcuts can be found here.

    0 讨论(0)
  • 2020-12-12 10:16

    In Linux (tested with Ubuntu and Kali Linux) you can also right click the tile on the dock and select New Window.

    0 讨论(0)
提交回复
热议问题