How do I open multiple instances of Visual Studio Code?

前端 未结 17 2802
长情又很酷
长情又很酷 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:16

    You can open multiple windows (from the menu or by running the code executable again).

    However, unfortunately there seems to be no way to actually have separate instances at the moment. For example, if you have two shells open with different environments in each (different paths, etc.), launching code for both will result in the second window sharing the same paths as the first, and ignoring the environment it was launched from.

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

    If you have all your JavaScript files in multiple folders under one folder that works out very well, and that's what I did:

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

    I like opening Visual Studio Code from the run prompt/dialog instead, with a sweet and simple cmd /c code -n. Since the run dialog also maintains your command history on a per user basis, it is very convenient. One click and go -

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

    If you want to open multiple instances of the same folder, then it is not currently supported. Watch and upvote this GitHub issue if you want to see it implemented: Support to open a project folder in multiple Visual Studio Code windows

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

    To open a new instance with your project loaded from terminal, just type code <directory-path>

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