{"id":228915,"date":"2020-04-08T12:53:29","date_gmt":"2020-04-08T19:53:29","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=228915"},"modified":"2020-11-04T14:31:32","modified_gmt":"2020-11-04T22:31:32","slug":"meet-visual-studio-for-macs-new-integrated-terminal","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/meet-visual-studio-for-macs-new-integrated-terminal\/","title":{"rendered":"Meet Visual Studio for Mac\u2019s New Integrated Terminal!"},"content":{"rendered":"<p>Our users tell us they frequently use a terminal for a variety of tasks \u2013 running front-end tasks (e.g. npm, ng, or vue), managing containers, running advanced git commands, scaffolding, automating builds , executing Entity Framework commands, viewing dotnet CLI output, adding NuGet packages, and more. Application switching can slow you down and cause you to lose focus. It\u2019s no surprise that an integrated terminal is one of <a href=\"https:\/\/developercommunity.visualstudio.com\/idea\/425543\/integrated-terminal-in-vs-studio-for-mac.html\">our top feature requests<\/a> and we\u2019re really happy to announce this feature is now in preview.<\/p>\n<p><figure id=\"attachment_228921\" aria-labelledby=\"figcaption_attachment_228921\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-228921 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/terminal.gif\" alt=\"Animation showing the Integrated Terminal\" width=\"2272\" height=\"696\" \/><figcaption id=\"figcaption_attachment_228921\" class=\"wp-caption-text\"><em>The new Visual Studio for Mac includes support for customization, including themes and fonts. This example is using the <a href=\"https:\/\/github.com\/romkatv\/powerlevel10k\">Powerlevel10K oh-my-zsh theme<\/a> and <a href=\"https:\/\/github.com\/microsoft\/cascadia-code\/wiki\/Installing-Cascadia-Code\">Cascadia Code PL font<\/a>.<\/em><\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Getting started with the integrated terminal<\/h2>\n<p>The new terminal is included in the latest preview version of Visual Studio for Mac 8.6. To use it, you\u2019ll need to <a href=\"https:\/\/aka.ms\/vs4mac-preview\">switch to the Preview channel<\/a>. Once you\u2019ve updated, you can launch the new terminal in one of several ways:<\/p>\n<ul>\n<li><strong>View<\/strong> &gt; <strong>Pads<\/strong> &gt; <strong>Terminal<\/strong> menu<\/li>\n<li><strong>Ctrl + ~<\/strong> keyboard shortcut (and <strong>Ctrl + \u2018<\/strong>, to match Windows)<\/li>\n<li><strong>Ctrl + `<\/strong> will toggle the Terminal pad to be shown or hidden<\/li>\n<li>Search in search bar: <strong>terminal<\/strong> (handled by menu name)<\/li>\n<li>Using a \u201c<strong>New Terminal<\/strong>\u201d button in the Terminal pad<\/li>\n<\/ul>\n<p>After you\u2019ve opened it, you\u2019ll see the terminal pad at the bottom of the Visual Studio for Mac window.<i> <\/i><\/p>\n<p><figure id=\"attachment_228922\" aria-labelledby=\"figcaption_attachment_228922\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-228922 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.36.39-AM.png\" alt=\"Visual Studio for Mac Integrated Terminal\" width=\"3072\" height=\"1714\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.36.39-AM.png 2048w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.36.39-AM-300x167.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.36.39-AM-1024x571.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.36.39-AM-768x429.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.36.39-AM-1536x857.png 1536w\" sizes=\"(max-width: 3072px) 100vw, 3072px\" \/><figcaption id=\"figcaption_attachment_228922\" class=\"wp-caption-text\"><em>The Visual Studio for Mac integrated terminal immediately after being launched.<\/em><\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 1rem;\">Now that you\u2019ve got the terminal set up, let\u2019s look at some of its features.<\/span><\/p>\n<h2>Sensible defaults<\/h2>\n<p>By default, when the terminal is launched it will:<\/p>\n<ul>\n<li>Set the working directory to the path of the current solution<\/li>\n<li>Load the default system shell (unless the IDE is configured to use a different shell)<\/li>\n<li>Include the Azure CLI in the set of defaults<\/li>\n<\/ul>\n<h2>Search<\/h2>\n<p>To help filter through complex terminal output, developers need to be able to search the content of the terminal window.\u00a0You can use the standard Search &gt; Find\u2026 command for this. You\u2019ll notice the Find UI is similar to the search experience in an editor window:<\/p>\n<p><figure id=\"attachment_228923\" aria-labelledby=\"figcaption_attachment_228923\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-228923 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.40.28-AM.png\" alt=\"Search experience in the Visual Studio for Mac Integrated Terminal\" width=\"2260\" height=\"642\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.40.28-AM.png 2260w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.40.28-AM-300x85.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.40.28-AM-1024x291.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.40.28-AM-768x218.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.40.28-AM-1536x436.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.40.28-AM-2048x582.png 2048w\" sizes=\"(max-width: 2260px) 100vw, 2260px\" \/><figcaption id=\"figcaption_attachment_228923\" class=\"wp-caption-text\"><em>Search experience in the Visual Studio for Mac Integrated Terminal<\/em><\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Integration with the Mac terminal<\/h2>\n<p>One really nice feature of the integrated terminal is that it utilizes your Mac system terminal. That means that your terminal customizations \u2013 zsh, oh-my-zsh, etc. \u2013 work the way you\u2019re used to. If you&#8217;ve spent some time nerding out on a beautiful terminal, it&#8217;ll be right there for you when you open the Visual Studio for Mac Integrated Terminal. Not only that, but your command history works in sync between your system terminal and Visual Studio for Mac. When you open a new terminal pad in Visual Studio for Mac, hit the up arrow to see your previous commands from the system terminal.<\/p>\n<h2>Multiple instances<\/h2>\n<p>Multiple instances of the terminal may be running at any time. You can manage the instances by:<\/p>\n<ul>\n<li>Switching between each instance<\/li>\n<li>Creating new instances<\/li>\n<li>Closing an instance<\/li>\n<\/ul>\n<p><figure id=\"attachment_228924\" aria-labelledby=\"figcaption_attachment_228924\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-228924 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.50.48-AM.png\" alt=\"Multiple terminal instances in Visual Studio for Mac\" width=\"2302\" height=\"694\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.50.48-AM.png 2302w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.50.48-AM-300x90.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.50.48-AM-1024x309.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.50.48-AM-768x232.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.50.48-AM-1536x463.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.50.48-AM-2048x617.png 2048w\" sizes=\"(max-width: 2302px) 100vw, 2302px\" \/><figcaption id=\"figcaption_attachment_228924\" class=\"wp-caption-text\"><em>Multiple terminal instances in Visual Studio for Mac<\/em><\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Configuring the Terminal Font<\/h2>\n<p>You\u2019ll notice a new font selector for Terminal Contents in the Preferences &gt; Environment &gt; Fonts pane. By default, the font will be the same as Output Pad Contents, using Menlo Regular, size 11. You can set it to any font, independent of your editor font.<\/p>\n<p><figure id=\"attachment_228925\" aria-labelledby=\"figcaption_attachment_228925\" class=\"wp-caption aligncenter\" ><img decoding=\"async\" class=\"wp-image-228925 size-full\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.52.51-AM.png\" alt=\"Terminal Font Settings\" width=\"1928\" height=\"1410\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.52.51-AM.png 1928w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.52.51-AM-300x219.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.52.51-AM-1024x749.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.52.51-AM-768x562.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/04\/Screen-Shot-2020-04-08-at-2.52.51-AM-1536x1123.png 1536w\" sizes=\"(max-width: 1928px) 100vw, 1928px\" \/><figcaption id=\"figcaption_attachment_228925\" class=\"wp-caption-text\"><em>Customizing the font settings for the integrated terminal<\/em><\/figcaption><\/figure><\/p>\n<p>&nbsp;<\/p>\n<h2>Give it a try today!<\/h2>\n<p>The new integrated terminal is now available in Visual Studio 2019 for Mac 8.6 Preview. To start using it, make sure you\u2019ve\u00a0<a href=\"https:\/\/visualstudio.microsoft.com\/vs\/mac\/\">downloaded and installed Visual Studio 2019 for Mac<\/a>, then\u00a0<a href=\"https:\/\/aka.ms\/vs4mac-preview\">switch to the Preview channel<\/a>.<\/p>\n<p>If you&#8217;re using Windows, <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/say-hello-to-the-new-visual-studio-terminal\/\">Visual Studio has an experimental terminal as well<\/a>, also in preview.<\/p>\n<p>As always, if you have any feedback on this, or any, version of Visual Studio for Mac, we invite you to leave them in the comments below this post or to reach out to us on Twitter at\u00a0<a href=\"https:\/\/twitter.com\/VisualStudioMac\" target=\"_blank\" rel=\"noopener noreferrer\">@VisualStudioMac<\/a>. If you run into issues while using Visual Studio for Mac, you can use\u00a0<a href=\"https:\/\/docs.microsoft.com\/visualstudio\/mac\/report-a-problem?view=vsmac-2019\" target=\"_blank\" rel=\"noopener noreferrer\">Report a Problem<\/a>\u00a0to notify the team. In addition to product issues, we also welcome your\u00a0<a href=\"https:\/\/aka.ms\/vsmac-suggestion\" target=\"_blank\" rel=\"noopener noreferrer\">feature suggestions<\/a>\u00a0on the\u00a0<a href=\"https:\/\/aka.ms\/feedback\/vsm-home\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Studio Developer Community website<\/a>.<\/p>\n<p>We hope you enjoy using Visual Studio 2019 for Mac 8.6 Preview 1 as much as we enjoyed working on it!<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/docs.microsoft.com\/en-us\/visualstudio\/mac\/install-preview?view=vsmac-2019\" target=\"_blank\">Get Visual Studio for Mac Preview<\/a><\/div><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2019 for Mac Preview now includes an integrated terminal, with support for themes, search, multiple instances, and integration with the macOS terminal history. Read about the new features and find out how to try it out today!<\/p>\n","protected":false},"author":470,"featured_media":228920,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[4468,3743,452,4976],"class_list":["post-228915","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-terminal","tag-visual-studio-2019-for-mac","tag-visual-studio-for-mac","tag-vsmac"],"acf":[],"blog_post_summary":"<p>Visual Studio 2019 for Mac Preview now includes an integrated terminal, with support for themes, search, multiple instances, and integration with the macOS terminal history. Read about the new features and find out how to try it out today!<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/228915","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\/470"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=228915"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/228915\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/228920"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=228915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=228915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=228915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}