In Visual Studio for Mac you can open an integrated terminal window, initially starting at the root of your solution. The terminal can be useful for different kinds of situations – running front-end tasks (for example: npm, ng, or vue), managing containers, running advanced git commands, executing Entity Framework commands, viewing dotnet CLI output, adding NuGet packages, and more.
To open the terminal:
- Use the Ctrl + ` keyboard shortcut to show or hide the terminal window.
- Use the View > Terminal menu.
- Use the terminal command from the search bar.
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.
You can search the content of the terminal window by using the Search > Find... menu.
Terminal Keyboard Shortcuts
|Show/Hide the terminal window||Ctrl+ `|
|Create new terminal instance||Ctrl+'|
|Scroll page up||PageUp|
|Scroll page down||PageDown|
|Cycle through previously used commands||↑, ↓|
|Increase font size||⌘+|
|Decrease font size||⌘-|
Multiple instances of the terminal may be running at any time. You can create a new instance by using the Ctrl+' keyboard shortcut. You can switch between instances by clicking on the tab for each instance, or using the Ctrl+tab shortcut to use the window picker dialog.
Customizing the terminal window
Configuring the Terminal Font
You can change the font and size used for Terminal Contents in the Preferences > Environment > Fonts pane. By default, the font will be the same as Output Window Contents, using Menlo Regular, size 11. You can set it to any font, independent of your editor font.
Reusing system terminal customizations
The integrated terminal uses the same defaults and configuration as your macOS system terminal. That means that your terminal customizations (zsh, oh-my-zsh, etc.) also work in the integrated terminal.