How to open two / multiple instances of Visual Studio for MAC?

25,792

Solution 1

Open a terminal window, and then issue the following command:

open -n -a "Visual Studio"

Solution 2

Alright, at last!, Microsoft has just implemented the simplest solution of all in Visual Studio 2019: just right click on its icon on the launch bottom bar, and choose "New instance":

feature screenshot

See the details of the feature in the release notes of VS2019 for Mac Preview.

Solution 3

There is also the option of opening multiple solutions in the same Visual Studio instance.

  1. From Recent list: Hold Ctrl while clicking the solution name
  2. From File -> Open: Single click the .sln file, click Options and uncheck Close Current Workspace.

Credit: https://www.jimbobbennett.io/opening-multiple-solutions-in-visual-studio-for-mac/

Note. the active project(For run/debug) changes depending on which file you have marked/selected/editing.

Solution 4

If you don't want to daily search for this specific terminal command, create a script as below:

  1. Open "Script Editor" in Mac
  2. Paste: do shell script "open -n -a 'Visual Studio'"
  3. Save this file somewhere (On Desktop)
  4. Whenever need to launch another instance, simply open this file and click on "Run the Script" button

Screenshot Here

Solution 5

  • Visual Studio Code
  • Version: 1.39.2

enter image description here

Share:
25,792
Gobi M
Author by

Gobi M

Working on - iOS native application development, iOS Framework development, Hybrid mobile app development, Cordova Plugin Development

Updated on July 09, 2022

Comments

  • Gobi M
    Gobi M almost 2 years

    I wish to open multiple instances of VS for Mac. I used to be able to do this with Xamarin studio using the Xamarin launcher.

    How to do this with VS for Mac?

  • chris hu
    chris hu over 6 years
    Easy, helpful! showed me new trick of using MAC script editor. Thanks!
  • user274101
    user274101 over 6 years
    Can't believe this hasn't gotten any upvotes. Amazing trick - I didn't know it was possible to have multiple solutions open at the same time in the same Solution explorer pane!
  • Mick Walker
    Mick Walker over 6 years
    Upvoting this as it was exactly what I needed
  • Alexey Strakh
    Alexey Strakh about 6 years
    it stopped working with the latest VS for Mac release, unable to open any project withing a solution.
  • Paramjit
    Paramjit about 6 years
    I am using the latest version of VS for Mac and the MSSolutionLauncher is working fine. Never invoke the IDE directly. double click the solutionLauncher for opening new instance.
  • koderiter
    koderiter almost 6 years
    Probably a reason for no upvote is, from what I can tell, by doing this action it adds the solution to the current workspace not open a new instance of visual studio.
  • knocte
    knocte almost 6 years
    "New Window" is not in that menu, is the option gone?
  • Kevin Danikowski
    Kevin Danikowski almost 6 years
    @knocte it is still there for macs. I just downloaded it again to install last week and the new window option is still present
  • knocte
    knocte almost 6 years
    I don't understand why I don't see it on my mac
  • Kevin Danikowski
    Kevin Danikowski almost 6 years
    @knocte perhaps you have an older mac? i'm using a 2017. It also works on the 2015 I used to have.
  • user1623521
    user1623521 over 5 years
    that screenshot is VSCode, not VS4Mac
  • Kevin Danikowski
    Kevin Danikowski over 5 years
    @user1623521 good point i didn't know there was a difference. Perhaps others who don't know the difference would find benefit. I'll put a comment above the image
  • knocte
    knocte over 4 years
    the question is about VS4Mac
  • Ryan B
    Ryan B over 3 years
    Downvoting just because @knocte's solution is more current and easier.