๐ Meet Visual Studio for Macโs New Integrated Terminal!
๐ก Newskategorie: Programmierung
๐ Quelle: devblogs.microsoft.com
Our users tell us they frequently use a terminal for a variety of tasks โ 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โs no surprise that an integrated terminal is one of our top feature requests and weโre really happy to announce this feature is now in preview.
ย
Getting started with the integrated terminal
The new terminal is included in the latest preview version of Visual Studio for Mac 8.6. To use it, youโll need to switch to the Preview channel. Once youโve updated, you can launch the new terminal in one of several ways:
- View > Pads > Terminal menu
- Ctrl + ~ keyboard shortcut (and Ctrl + โ, to match Windows)
- Ctrl + ` will toggle the Terminal pad to be shown or hidden
- Search in search bar: terminal (handled by menu name)
- Using a โNew Terminalโ button in the Terminal pad
After youโve opened it, youโll see the terminal pad at the bottom of the Visual Studio for Mac window.
ย
Now that youโve got the terminal set up, letโs look at some of its features.
Sensible defaults
By default, when the terminal is launched it will:
- Set the working directory to the path of the current solution
- Load the default system shell (unless the IDE is configured to use a different shell)
- Include the Azure CLI in the set of defaults
Search
To help filter through complex terminal output, developers need to be able to search the content of the terminal window.ย You can use the standard Search > Findโฆ command for this. Youโll notice the Find UI is similar to the search experience in an editor window:
ย
Integration with the Mac terminal
One really nice feature of the integrated terminal is that it utilizes your Mac system terminal. That means that your terminal customizations โ zsh, oh-my-zsh, etc. โ work the way youโre used to. If youโve spent some time nerding out on a beautiful terminal, itโ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.
Multiple instances
Multiple instances of the terminal may be running at any time. You can manage the instances by:
- Switching between each instance
- Creating new instances
- Closing an instance
ย
Configuring the Terminal Font
Youโll notice a new font selector for Terminal Contents in the Preferences > Environment > 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.
ย
Give it a try today!
The new integrated terminal is now available in Visual Studio 2019 for Mac 8.6 Preview. To start using it, make sure youโveย downloaded and installed Visual Studio 2019 for Mac, thenย switch to the Preview channel.
If youโre using Windows, Visual Studio has an experimental terminal as well, also in preview.
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ย @VisualStudioMac. If you run into issues while using Visual Studio for Mac, you can useย Report a Problemย to notify the team. In addition to product issues, we also welcome yourย feature suggestionsย on theย Visual Studio Developer Community website.
We hope you enjoy using Visual Studio 2019 for Mac 8.6 Preview 1 as much as we enjoyed working on it!
ย
The post Meet Visual Studio for Macโs New Integrated Terminal! appeared first on Visual Studio Blog.
...