github代码设置启动终端,并在启动时命令
有谁知道一种配置GitHub代码的方法,以在启动时使用命令(例如“ NPM启动”)运行自动多个终端?
我已经尝试使用配置终端文件的VS-CODE扩展“终端管理器”,但它仅在普通VS-CODE中起作用。不在代码方面。
提前致谢
does anyone know a way to configure Github codespaces to run automatic multiple terminals with commands (eg. "npm start") on startup?
I already tried the VS-Code extension "Terminal Manager" with configured terminals.json file, but it works just in normal VS-Code. Not in Codespaces.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
PostCreateCommand
如果您有一个脚本,则可以在使用此语法创建的容器之后运行:
如果您具有乘数命令,则可以使用
&&&
:devcontainer refernce
devcontainer lifecycle scripts
You can use
postCreateCommand
If you have one script you can run after container created with this syntax:
if you have multiply command you can separate commands with
&&
:Devcontainer refernce
Devcontainer Lifecycle scripts
String vs array in devcontainer.json
Github issue