vscode在linux上以root用户运行

在linux上安装vscode后,发现普通用户可以使用,管理员用户启动不了,报错如下:
ou are trying to start Visual Studio Code as a super user which isn’t recommended. If this was intended, please specify an alternate user data directory using the --user-data-dir argument.

启动的时候,设置下–user-data-dir参数即可,如下所示:
./code --user-data-dir="~/.vscode"

你可能感兴趣的:(vscode,root,linux)