Using Sublime Text or Visual Studio with Unity

This tutorial is going to walk through the process of setting up Sublime Text and Visual Studio with Unity. By default Unity comes with MonoDevelop, but not everyone enjoys using this tool. Fortunately Unity makes it fairly painless to set up one of these other text editors/IDE’s as long as you know where to look.

The requirements for this are pretty straightforward. Here is what I will be specifically working with, though this process will be very similar for other versions of these programs as long as they are relatively current.

- Unity 4.6.0f3
- Sublime Text 3
- Visual Studio 2013

I’m also on a Windows 7 PC, but since the process primarily takes place in Unity, the process should be very similar in other operating systems.

First things first we will open up Unity. You will want to open up:


You should see a small window open up, on the left hand sidebar of that window there will be different tabs. The second one should read ‘External Tools’, this is the one you want to select. The first few options here are what concern us. You will need to browse to our script editor of choice, either Sublime Text or Visual Studio. Here are the default install locations for these programs:

- Sublime Text 3
C:\Program Files\Sublime Text 3\sublime_text.exe
- Visual Studio 2013
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe

If you are using Visual Studio, then you have just successfully set it up. If you are using Sublime Text 3, then there is one additional step. To get Sublime Text to open your script file, at the line of an error, you need to set up some External Script Editor Args, which is an option when Sublime Text is selected. Here is what you want to pass in:


Those arguments pass the file name and the line number to Sublime Text so that it knows what to open, and where to go. Unity gets this information and passes it when you double click a script file, or a script error in the Unity console.

I know this was short, and that is a great thing, now you can go back to making games!

A single golf clap? Or a long standing ovation?

By clapping more or less, you can signal to us which stories really stand out.