VSCode 报错 grep: /proc/version: 权限不够

部分用户在Linux上运行VSCode提示grep: /proc/version: 权限不够

grep: /proc/version: 权限不够
You are trying to start Visual Studio Code as a super user which isn’t recommended. If this was intended, please add the argument --no-sandbox and specify an alternate user data directory using the --user-data-dir argument.

VSCode默认不支持root用户启动,如果需要使用root用户启动,需在启动命令中加上--no-sandbox

/usr/share/code/code --no-sandbox --unity-launch

猜你喜欢

转载自blog.csdn.net/a18845594188/article/details/132289085