简体   繁体   English

VS Code中的多个命令行,而无需打开新窗口

[英]multiple commands line in VS Code without open a new window

I'm trying to make multiple command lines in VS Code without open a new window. 我试图在VS Code中创建多个命令行,而无需打开新窗口。 Someone knows how to do that ? 有人知道该怎么做吗?

Here the failing codes I have tried so far : 这是我到目前为止尝试过的失败代码:

touch foo.js & code -a  #!:1

touch foo.js && code -a  #!:1

these command line entries open a new window, however I would open a new tab in the same VS Code session, 这些命令行条目会打开一个新窗口,但是我将在同一VS Code会话中打开一个新标签,

Thanks 谢谢

From PR 45322 , check if your setting window.openWithoutArgumentsInNewWindow is set to ' on '. PR 45322中 ,检查您的设置window.openWithoutArgumentsInNewWindow是否设置为' on '。

That controls if a new empty window should open when starting a second instance without arguments or if the last running instance should get focus. 这控制着在启动不带参数的第二个实例时是否应该打开一个新的空窗口,或者最后一个正在运行的实例是否应该获得焦点。

Set it to off. 将其设置为关闭。 Then try again code aFile . 然后再尝试code aFile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM