从终端启动时出现 VSCode 错误

Nex*_*tar 4 command-line ide microsoft

我在 Ubunutu 14.04 64 位上安装了 VSCode,但是当它从终端启动时出现此错误:

[6303:0615/111654:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
Run Code Online (Sandbox Code Playgroud)

这是我应该解决的问题还是来自 VSCode?

还有没有办法从终端启动它但终端不要一直保持打开状态?

Luk*_*ngs 6

由于忽略启动错误似乎是安全的,请将其添加到您的 .bashrc 中:

function __code {
   if [ "$@x" != 'x' ]; then
      (~/path/to/Code "$@" &) &> /dev/null
   else
      (~/path/to/Code &) &> /dev/null
   fi
}

alias code='__code'
Run Code Online (Sandbox Code Playgroud)

这将允许您使用与文档中相同的调用约定。

如果您不想抑制错误,只需删除该&> /dev/null位。

另外不要忘记替换~/path/to为您将 zip 文件解压缩到的实际路径。