12
2014
using Visual Studio Community 2013 (Free) with Unity
“Visual Studio Community 2013 A Full-Featured IDE – FREE” (link)
Some notes what it took to make it work (was pretty easy)
Installing Visual Studio Community 2013 (FREE!)
– Download: http://www.visualstudio.com/en-us/products/visual-studio-community-vs
– Install (you can leave out those extras)
– Restart
– Start visual studio
– Sign in
– [x] Create visual studio online account (optional, but could be useful later, more info: http://www.visualstudio.com/en-us/products/what-is-visual-studio-online-vs.aspx , free for 5 users)
– Development settings: General
– Color scheme: Dark (well anything works)
– Can close it now
– Start Unity
– ** You dont need to do these next steps if you will install VS Tools also **
– Go to Edit / Preferences / External Tools
– External script editor, click “browse..” from the dropdown
– Find Visual Studio Community exe, default location is at: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
– Test opening some script
– Yay it works! (and even clicking error codes in console takes you to the correct line)
**
VS TOOLS FOR UNITY (previously UnityVs, so you can use Debugging and maybe there are other benefits also??)
– Download (I took 2013 version: https://visualstudiogallery.msdn.microsoft.com/20b80b8c-659b-45ef-96c1-437828fe7cf2 (or check http://unityvs.com/ )
– Then copy “Visual Studio 2013 Tools.unitypackage” from “C:\Program Files (x86)\Microsoft Visual Studio Tools for Unity\2013\” into your Unity Standard packages folder (so that its easy to import)
– Standard Packages folder is usually somewhere like “C:\Program Files (x86)\Unity4\Editor\Standard Packages\” (It contains the other unity standard packages also)
– You need to restart unity for it to show up in the Import Package list
– Done!
**
FINAL TEST & DEBUGGING
– Start Unity
– Import “Visual Studio 2013 Tools.unitypackage” (right click in Project window, Import Package / Visual Studio 2013 Tools”
– New Menu item appears: Visual Studio Tools
– Menu: Visual Studio Tools / Generate Project Files (not sure what it does, but why not..)
– Menu: Visual Studio Tools / Configuration
– Activate [x] Open scripts with Visual Studio
– Now open some script by double clicking it
– Visual Studio Community should open (for me it didn’t open the script on first run, had to double click script file again)
– Now Debugging should work: In Visual Studio, select menu: Debug / Attach Unity Debugger
– Then select unity instance (displays the project name)
– Insert breakpoint somewhere in code (by clicking the left border of script editor window, left side to line numbers)
*To enable line numbers in VS, type “line numbers” (without quotes) in the Quick Launch search box, then enable [x] Line numbers from that settings page
**
TODO/Missing:
– Scripting API keywords search on keypress (like in monodev)
– ctrl+D for duplicate line (like in uniscite)
Related Posts
6 Comments + Add Comment
Leave a comment
Recent posts
- [GreaseMonkey] Unity Forum Fixer
- UnityHub: Make Hub application background Translucent
- Customize SpriteShapeRenderer quality (but has issues)
- Editor tool: Copy selected gameobject’s names into clipboard as rows (for Excel)
- Editor tool: Replace string in selected gameobject’s names
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
Recent Comments
- Vector3 maths for dummies! on
- UnityHub: Make Hub application background Translucent on
- UnityHub: Make Hub application background Translucent on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub) on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- ffmpeg stream raw video into Unity Texture2D on
Awesome! Just what I was looking for! I’m glad I subscribed to your RSS 🙂 Thanks!
API Search in Visual Studio can be done by: “ctrl + alt + m” then “ctrl + h”.
Thanks, will check it (although that is still too many clicks..)
with the old unityVS i did make addin/plugin to get the word at cursor position and open scripting document search URL for that (using just single key), havent tried it in the 2013 version..
too bad macros were removed before..i guess they are not back yet?
https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2650757-bring-back-macros
How to use Visual Studio with Unity:
http://twiik.net/articles/how-to-use-visual-studio-with-unity
thank you! this was really helpful.
“Configure Visual Studio 2015 Community Edition and Visual Studio Online for Unity”
http://yecatsgamedev.tumblr.com/vs15Unity