I'd like to have multiple copies of Xamarin Studio running simultaneously. Once one copy is running, double-clicking the Xamarin Studio icon in /Applications
or clicking the currently-running Dock icon simply brings the current one to the foreground.
Open a second instance of Visual Studio for Mac To open a second instance of the integrated development environment (IDE), right-click on the Visual Studio icon in your dock or Applications folder, and select New Instance.
Trying to use the Finder to open multiple instances of an application on Mac OS X will simply cause the first instance to come to the foreground. To get around this, use the open command from the command line with the -n option. The -n option opens a new instance of the application even if one is already running.
The Best Answer is. 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 File → Open Folder to have two instances of Visual Studio Code with different folders in each window.
open -a "Visual Studio" \ "path to first sln" \ "path to second sln" \ ... Show activity on this post. Just hit Shift+Command+N (Or go to "File > New Window" and it will open a new window.
If you just want to download something that does this for you, there is also the MS Solution Launcher or the older Xamarin Studio Launcher v3. Presumably, it does something similar to the script below but comes in a nice pre-built app with a distinct icon you just copy to your Application folder. As well, it can even be set up as a target for opening .sln
files, allowing you to launch a new Xamarin Studio instance when you double-click a solution file.
Just like described for MonoDevelop, you can force a new instance from the command line. As well, with an AppleScript side-trip described for MonoDevelop, you can get this in the form of an app icon.
The only difference between the MonoDevelop script and the new Xamarin Studio version is the requirement of an additional escape character since the new app has a space in its name.
Open AppleScript Editor and enter the following (note the doubly-escaped space to get the space to the shell unmolested).
do shell script "open -n /Applications/Xamarin\\ Studio.app/"
Save with a name like "Xamarin Studio Launcher" and make sure to specify Application for the file format.
Drag the icon to your dock.
Each run of this new "app" will launch a new instance of Xamarin Studio.
From there, as described in a comment from the MonoDevelop answer, you can use the Xamarin Studio icon instead of the default applet icon.
Right-click the original Xamarin Studio app and choose "Show Package Contents".
Navigate to /Contents/Resources/
and copy the XamarinStudio.icns
file (or monodevelop.icns
, for older XS releases).
Right-click the launcher app you created and choose "Show Package Contents".
Navigate to its /Contents/Resources/
and paste a new copy of that icns
file.
Delete the original applet.icns
icon and rename the new monodevelop.icns
to applet.icns
to take its place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With