Open the terminal in visual studio?

前端 未结 12 2201
-上瘾入骨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: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!

提交回复
热议问题