从命令行启动的Visual Studio Code合并了两个过程 [英] Visual Studio Code launched from command line conflates the two processes

查看:99
本文介绍了从命令行启动的Visual Studio Code合并了两个过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果从命令行启动Visual Studio Code,输入代码,则命令行(终端)进程和vsc进程将被链接。 vsc日志条目将写入终端。终端机易碎或无法使用。

If you launch Visual Studio Code from the command line, entering "code", the command line(terminal) process and the vsc process becoming linked. vsc log entries are written to the terminal. The terminal becomes fragile or unusable. Terminating the terminal also terminates VSC.

这是在Windows 10 VSC v 1.33.1上。 VSC安装使用默认设置。 code.exe文件位于C:\Users {userid} \AppData\Local\Programs\Microsoft VS Code\

This is on Windows 10, VSC v 1.33.1. The VSC installation used default settings. The code.exe file is at C:\Users{userid}\AppData\Local\Programs\Microsoft VS Code\

如何解决此问题

推荐答案

解决方案是启动 code.cmd而不是仅启动 code(启动code.exe) )。

The solution is to launch "code.cmd" instead of just "code" (which launches code.exe.)

code.cmd位于保存code.exe的文件夹下的bin文件夹中。

code.cmd is in the bin folder under the folder holding code.exe.

两个文件夹位于我的PATH上,大概是因为安装程序这样做了。

Both folders are on my PATH, presumably because the installer made it so.

这篇关于从命令行启动的Visual Studio Code合并了两个过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆