{"id":228364,"date":"2020-02-17T13:27:51","date_gmt":"2020-02-17T21:27:51","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=228364"},"modified":"2020-02-17T13:30:36","modified_gmt":"2020-02-17T21:30:36","slug":"catch-up-with-visual-studio-tools-for-unity-on-mac","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/catch-up-with-visual-studio-tools-for-unity-on-mac\/","title":{"rendered":"Catch up with Visual Studio Tools for Unity on Mac"},"content":{"rendered":"<p>Since the launch of Visual Studio for Mac, we have been continuously working on improving Visual Studio Tools for Unity (VSTU). Visual Studio for Mac has been the default IDE for Unity on Mac and it provides free world class support for Unity projects through VSTU. VSTU has always offered IntelliSense for Unity messages, Superior debugging, refactoring, Unity project browser, and familiar shortcuts. Since we launched Visual Studio for Mac, we have also updated the Tools with new features. If you have not tried Visual Studio for Mac with Unity recently, here are some of the new features available to you right now.<\/p>\n<h3>Roslyn Diagnostics and quick fixes for Unity<\/h3>\n<p>We have replaced NRefacatory with the C# Roslyn analyzer which will give you improved warnings and analysis of your Unity code. We also launched suppressors for general C# analyzers that are not applicable to a Unity project to reduce the noise as you write your code.<\/p>\n<p><img decoding=\"async\" width=\"974\" height=\"593\" class=\"wp-image-228369 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-5.png\" alt=\"A screenshot of a cell phone Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-5.png 974w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-5-300x183.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-5-768x468.png 768w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/p>\n<p>Additionally, we open sourced the analyzers so that the whole community can contribute to them. You can find the <a href=\"https:\/\/github.com\/microsoft\/microsoft.unity.analyzers\">Analyzers on GitHub<\/a> and read the <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/making-our-unity-analyzers-open-source\/\">full announcement<\/a> here.<\/p>\n<h3>The same Windows Unity Debugger in Visual Studio for Mac<\/h3>\n<p>We made sure that the Unity development experience is consistent on both Windows and Mac. To enable this, we replaced the Visual Studio Mac Unity Debugger with the same core Windows Unity Debugger.<\/p>\n<h3>Attaching the IDE Debugger to any Unity instance<\/h3>\n<p>When debugging a Unity project, you can now press an \u201cAttach to Unity and play\u201d button, which will attach the debugger to the Unity instance. If there are multiple instances of Unity open, the IDE will prompt you to choose the appropriate instance to attach to. Furthermore, we added support for Unity background processes, which will auto-connect the debugger to the main Unity process.<\/p>\n<p><img decoding=\"async\" width=\"906\" height=\"188\" class=\"wp-image-228370 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-6.png\" alt=\"A screenshot of a cell phone Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-6.png 906w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-6-300x62.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-6-768x159.png 768w\" sizes=\"(max-width: 906px) 100vw, 906px\" \/><\/p>\n<h3>Added support for automatically refreshing Unity&#8217;s asset database on save<\/h3>\n<p>When saving a script, Unity will be notified of your changes and it will automatically reflect them in the Unity editor without the need to build or reload your project.<\/p>\n<h3>Unity project don\u2019t need to fully build anymore<\/h3>\n<p>We changed the default behavior of Visual Studio for Mac to not run a full build for Unity project. Instead, we are using the IntelliSense errors and warnings. You could disable this behavior from the Setting menu option: Preferences -&gt; Tools for Unity -&gt; Disable running MSBUILD on the projects.<\/p>\n<p><img decoding=\"async\" width=\"1432\" height=\"1050\" class=\"wp-image-228371 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-7.png\" alt=\"A screenshot of a cell phone Description automatically generated\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-7.png 1432w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-7-300x220.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-7-1024x751.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/a-screenshot-of-a-cell-phone-description-automati-7-768x563.png 768w\" sizes=\"(max-width: 1432px) 100vw, 1432px\" \/><\/p>\n<h3>Support for Attaching Android devices through USB<\/h3>\n<p>When debugging your games on an Android device, you can now Attach the debugger to an Android player through USB. This will help you debug games running on Android devices.<\/p>\n<h3>Support for basic shader code<\/h3>\n<p>We now support basic code completion for shader code within Visual Studio for Mac, as well as toggling comments in shader files using the same shortcuts.<\/p>\n<p><img decoding=\"async\" width=\"374\" height=\"337\" class=\"wp-image-228372 aligncenter\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/word-image-3.png\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/word-image-3.png 374w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/02\/word-image-3-300x270.png 300w\" sizes=\"(max-width: 374px) 100vw, 374px\" \/><\/p>\n<h3>Support for pointers in the Debugger<\/h3>\n<p>We support viewing array pointers in the debugger now. For example, you can take a pointer expression, then append a comma and the number of elements you want to see.<\/p>\n<h3>Summary<\/h3>\n<p>As we look into the future, we want to continue to listen to your feedback and continue to developer the features you want to see in Visual Studio for Mac. Please send us feedback using the feedback tool within Visual Studio for Mac, and don\u2019t forget to complete surveys when they pop up in the IDE as they help us drive development of the product. Feel free to use the hashtag #VSTU and mention @visualstudiomac on twitter. We love to make sure we are developing the features you want to use.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Whats new in Visual Studio Tools for Unity since we launched Visual Studio for Mac.<\/p>\n","protected":false},"author":18460,"featured_media":228379,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[472,155],"tags":[5,179,182,147,3743,452,4976],"class_list":["post-228364","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gaming","category-visual-studio","tag-csharp","tag-game-development","tag-unity","tag-update","tag-visual-studio-2019-for-mac","tag-visual-studio-for-mac","tag-vsmac"],"acf":[],"blog_post_summary":"<p>Whats new in Visual Studio Tools for Unity since we launched Visual Studio for Mac.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/228364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/18460"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=228364"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/228364\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/228379"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=228364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=228364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=228364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}