{"id":1772,"date":"2014-08-16T23:06:45","date_gmt":"2014-08-16T14:06:45","guid":{"rendered":"http:\/\/www.codedojo.com\/?p=1772"},"modified":"2014-08-16T23:27:15","modified_gmt":"2014-08-16T14:27:15","slug":"dev-dairy-a-look-at-visual-studio-2013-unity-and-unityvs","status":"publish","type":"post","link":"https:\/\/www.codedojo.com\/?p=1772","title":{"rendered":"Dev Diary:  A look at Visual Studio 2013, Unity, and UnityVS"},"content":{"rendered":"<h2><a href=\"http:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/oldman.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-1775\" src=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/oldman.jpg\" alt=\"oldman\" width=\"434\" height=\"292\" srcset=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/oldman.jpg 795w, https:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/oldman-300x201.jpg 300w\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" \/><\/a><\/h2>\n<h2>I&#8217;m a bitter old man<\/h2>\n<p>When you&#8217;ve been making stuff as long as I have you get comfortable with your tools.<\/p>\n<p>I am a greased ninja with Visual Studio 2005, VisualAssist, and C++.<\/p>\n<p>I&#8217;m a snail drenched\u00a0in chunky peanut butter working with anything else.<\/p>\n<p>But yesterday I gave Visual Studio 2013 + Unity a shot and it actually wasn&#8217;t half bad, so here are my tips if that&#8217;s something you&#8217;re interested in. \u00a0Beats MonoDevelop by a mile as far as I can tell.<\/p>\n<h2>My tips for people upgrading\u00a0from old VS versions:<\/h2>\n<ul>\n<li>First I downloaded Visual Studio 2013. \u00a0 I guess it&#8217;s &#8220;Ultimate&#8221; and free for 90 days? \u00a0Fine. \u00a0After that we&#8217;ll see, but I&#8217;m pretty sure I&#8217;m not going to cough up <a href=\"http:\/\/www.visualstudio.com\/en-us\/products\/visual-studio-ultimate-with-msdn-vs#Fragment_PricingHeader\">$13,299<\/a> for Ultimate!<\/li>\n<li>Set keys to the included VS 2005 layout. \u00a0Changed it so F7 will compile all.<\/li>\n<li><strong>MOST IMPORTANT<\/strong>: <em>Enabled Options-&gt;Environment-&gt;Tabs and Windows-&gt;Floating tab wells always stay on top of the main window<\/em>. \u00a0Without this I found VS 2013 totally unusable.<\/li>\n<li>Turned off the silly all upper case menu fonts<\/li>\n<li>Installed <a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/dbcb8670-889e-4a54-a226-a48a15e4cace\">Productivity Power Tools 2013<\/a>\u00a0(adds some stuff to make the IDE smarter, sort of like VisualAssist?)<\/li>\n<li>Oh God, what are these vertical lines connecting every matching brace?! \u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/20404957\/visual-studio-2013-vertical-brace-lines\">Disabled that, FAST<\/a>.<\/li>\n<li>Stopped it from <a href=\"http:\/\/stackoverflow.com\/questions\/17847927\/how-to-hide-reference-counts-in-vs2013\">showing &#8220;References&#8221;<\/a><\/li>\n<li>Turned\u00a0off its funky new scroll bars, but ended up turning them on again, gotta see how that feels, they do have some interesting data<\/li>\n<li>Installed <a href=\"http:\/\/visualstudiogallery.msdn.microsoft.com\/20b80b8c-659b-45ef-96c1-437828fe7cf2\">UnityVS<\/a> (MS did something very smart, they bought it and made it free)<\/li>\n<li>Imported the &#8220;Visual Studio 2013 Tools.unitypackage&#8221; into a simple Unity project (this file gets installed by UnityVS \u00a0into\u00a0<i>C:\\Program Files (x86)\\Microsoft Visual Studio Tools for Unity\\2013 or something<\/i>, have to dig for it<i>)<\/i><\/li>\n<li>Inside Unity I double clicked a source code file and viola, it did load the project in VS 2013! \u00a0It wouldn&#8217;t start the Unity project when I hit F5, but it did connect to the process, so after manually starting the game in Unity it did perform debugging fine. \u00a0I think Visual Studio has THE BEST debugger around so this should come in handy. \u00a0Er, I mean, I&#8217;m guessing, since my code never has bugs of course. &lt;awkward silence\u00a0and then\u00a0someone coughs in the back&gt;<\/li>\n<li>When you hit a breakpoint, the Unity editor side seems to completely freeze until you hit Resume, too bad, seems like it would be useful to tool around in there and look at objects during debugging.<\/li>\n<li>Anyway, everything works and doesn&#8217;t feel half bad. \u00a0So far. \u00a0I assume the crashing, \u00a0freezing, and constant reboots that also plagued my experience with MonoDevelop\/Unity will start soon though.<\/li>\n<\/ul>\n<p>Anyway, here&#8217;s a picture of what debugging looks like. \u00a0I think it would be handy to be able to write non-Unity specific C# code and simultaneously have Unity and non-Unity VS projects open using it, maybe C++ as well as I still like that for my server backend code. \u00a0(<a href=\"http:\/\/www.tankedgame.com\/taxi\">See my Space Taxi Multiplayer test<\/a>) \u00a0(Uhh, ignore that code in the screenshot, it&#8217;s uh, an exercise for the reader to figure out how to make that less stupid looking and redundant)<\/p>\n<p><a href=\"http:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/unity_and_visual_studio.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-1776 size-medium\" src=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/unity_and_visual_studio-300x171.png\" alt=\"unity_and_visual_studio\" width=\"300\" height=\"171\" srcset=\"https:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/unity_and_visual_studio-300x171.png 300w, https:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/unity_and_visual_studio-1024x587.png 1024w, https:\/\/www.codedojo.com\/wp-content\/uploads\/2014\/08\/unity_and_visual_studio.png 1992w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a bitter old man When you&#8217;ve been making stuff as long as I have you get comfortable with your tools. I am a greased ninja with Visual Studio 2005, VisualAssist, and C++. I&#8217;m a snail drenched\u00a0in chunky peanut butter working with anything else. But yesterday I gave Visual Studio 2013 + Unity a shot [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,6,21],"tags":[],"class_list":["post-1772","post","type-post","status-publish","format-standard","hentry","category-development","category-tech-tips","category-unity"],"_links":{"self":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/1772","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1772"}],"version-history":[{"count":14,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/1772\/revisions"}],"predecessor-version":[{"id":1788,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=\/wp\/v2\/posts\/1772\/revisions\/1788"}],"wp:attachment":[{"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedojo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}