Using Visual Studio Code as the default editor for Unity3D on Mac
Contents
When developing with Unity on Mac you usually code with MonoDevelop. But it doesn’t support Korean, which was really annoying.
MS recently released Visual Studio Code for Mac and it supposedly supports Unity, so I gave it a try.
Install
First install VS Code
https://code.visualstudio.com/Press Cmd+P and install the extension with
ext install Omnisharpmight not even be needed…Install mono from the Mac terminal with
brew install monotakes a whileFrom here on just follow this site https://code.visualstudio.com/docs/runtimes/unity
Clone
git clone https://github.com/dotBunny/VSCode.gitand put thePlugins\Editor\dotBunnyfolder inside your Unity projectThen in
Unity Preferencesa VSCode tab shows up at the bottom. Check everything and press theWrite Workspace Settingsbutton.
Now double-clicking a cs file will open the project in VS Code.
Debugging
- Set a breakpoint where you want in VSCode. (To set one.. click the far left in the editor and a red dot appears.)
- Press F5 to enter debugging mode
- Then run Unity