简体   繁体   中英

Open 2 windows of Visual Studio Code through Terminal Mac

  1. The first Visual Studio Code window is easily opened through terminal through the command code .
  2. But going to the different folder structure and running the command code . doesn't open the new window rather it only makes the view go to the same visual studio code window.

Analogy to sublime

  1. subl . will open a new window if one sublime window is already open with different directory.

Edit : Let's say I have a project folder abc and a project folder def , I want to open both the projects in different visual studio code windows.

Going to the terminal in the folder abc and running command code . opens the folder abc in visual studio code window but then going to the folder def through terminal and running command code . doesn't open def folder in a new visual studio code window, so I have to click on New Window through Visual Studio Code and then select open folder and select def folder.

You could copy the VScode app and name the copy something similar (or not) and run VScode from first terminal and then run the copy from another terminal window. You will need to add the terminal command to "/usr/local/bin" for the the terminal name of the file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM