如何在 Visual Studio 中打开终端? [英] How can I open the terminal in Visual Studio?

查看:90
本文介绍了如何在 Visual Studio 中打开终端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何打开终端以在 Visual Studio(社区版)中执行 shell 命令?

How can I open the terminal for executing shell commands in Visual Studio (Community Edition)?

推荐答案

Visual Studio 2019

现在 Visual Studio 有一个内置终端:

Visual Studio 2019

Now Visual Studio has a built-in terminal:

菜单查看终端 (Ctrl + ")

Menu ViewTerminal (Ctrl + ")

更改默认终端

菜单 工具选项终端设为默认

Menu ToolsOptionsTerminalSet As Default

在 Visual Studio 2019 之前

根据评论,最佳答案来自 Hans Passant.

  1. 添加外部工具.

  1. Add an external tool.

菜单工具外部工具添加

标题:终端(或自己命名)

Title: Terminal (or name it yourself)

Command = cmd.exeCommand = powershell.exe

参数 = /k

初始目录 = $(ProjectDir)

菜单 工具终端(或任何你在标题中输入的内容)

Menu ToolsTerminal (or whatever you put in title)

享受吧!

这篇关于如何在 Visual Studio 中打开终端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆