How to run a .bat from inside the IDE

前端 未结 5 1197
囚心锁ツ
囚心锁ツ 2020-12-07 09:40

What I want to do is very simple, yet can\'t find the way to do it.
In my projects I have several .bat files (I know, I\'m old) the perform some tasks like running SqlMe

5条回答
  •  萌比男神i
    2020-12-07 10:09

    Check out the Open Command Line Visual Studio extension.

    As per the description, it features:

    • Opening of a command line at the root of the project.
    • Support for all consoles such as CMD, PowerShell, Bash etc.
    • Syntax highlighting, Intellisense and execution of .cmd and .bat files.

    For files in your solution, a context-menu button shows up.

    Alternatively, the keyboard shortcut Shift+Alt+5 can be used when editing a batch file. This makes it really easy and fast to execute any batch file - even ones that are not part of your project.

提交回复
热议问题