我有一个 运行.bat 使用以下命令创建文件:
start emulator.bat
react-native run-android
我正在运行我的 运行.bat 在 vscode 终端中。
'start' 命令在 vscode 之外打开一个新的命令行。
我想要的是该命令在 vscode 中打开一个新终端。
我怎样才能做到这一点?
更新:
我使用的原因
start emulator.bat
是因为模拟器的输出看起来像这样(命令没有结束):最佳答案
您只需要删除 start
来自您的文件的命令。
您更新的代码:
emulator.bat
react-native run-android
关于batch-file - 在 vscode 中为 .bat 文件中的 'start' 命令打开一个新终端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47650357/