Open the terminal in visual studio?

前端 未结 12 2141
-上瘾入骨i
-上瘾入骨i 2020-12-08 01:46

How to open terminal for executing shell commands in Visual Studio(Community Version)?

相关标签:
12条回答
  • 2020-12-08 02:05

    View -> debug console (Ctrl+Shift+Y) next to debug console is terminal

    0 讨论(0)
  • 2020-12-08 02:07

    Visual Studio 2019 update:

    Now vs has built-in terminal

    View > Terminal (Ctrl+")

    To change default terminal

    Tools > Options - Terminal > Set As Default


    Before Visual Studio 2019

    From comments best answer is from @Hans Passant

    1. Add an external tool.

    Tools > External Tools > Add

    Title: Terminal (or name it yourself)

    Command=cmd.exe Or Command=powershell.exe

    Arguments= /k

    Initial Directory=$(ProjectDir)

    1. Tools > Terminal (or whatever you put in title)

    2. Enjoy!

    0 讨论(0)
  • 2020-12-08 02:13

    Microsoft just included an integrated Windows Terminal in Visual Studio version 16.3 Preview 3. Go to Tools > Options > Preview Features, enable the Experimental VS Terminal option and restart Visual Studio.

    https://devblogs.microsoft.com/visualstudio/say-hello-to-the-new-visual-studio-terminal/

    0 讨论(0)
  • 2020-12-08 02:15

    Right click on your solution and above properties is the option open Command Line which gives access to default cmd, powershell and developer command prompt alternatively you can use the shortcuts Alt+Space for Default (cmd), Shift+Alt+, for Dev (cmd), Shift+Alt+. for powershell

    0 讨论(0)
  • 2020-12-08 02:16

    You can have a integrated terminal inside Visual Studio using one of these extensions:

    Whack Whack Terminal

    Terminal: cmd or powershell

    Shortcut: Ctrl\, Ctrl\

    Supports: Visual Studio 2017

    https://marketplace.visualstudio.com/items?itemName=DanielGriffen.WhackWhackTerminal


    BuiltinCmd

    Terminal: cmd or powershell

    Shortcut: CtrlShiftT

    Supports: Visual Studio 2013, 2015, 2017, 2019

    https://marketplace.visualstudio.com/items?itemName=lkytal.BuiltinCmd

    0 讨论(0)
  • 2020-12-08 02:21

    In Visual Studio 2019, You can open Command/PowerShell window from Tools > Command Line >

    If you want an integrated terminal, try
    BuiltinCmd: https://marketplace.visualstudio.com/items?itemName=lkytal.BuiltinCmd

    You can also try WhackWhackTerminal (does not support VS 2019 by this date).
    https://marketplace.visualstudio.com/items?itemName=dos-cafe.WhackWhackTerminal

    0 讨论(0)
提交回复
热议问题