VSCode reports an error grep: /proc/version: Insufficient permissions

Some users are prompted to run VSCode on Linuxgrep: /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 does not support root user startup by default. If you need to use root user startup, you need to add to the startup command--no-sandbox

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

Guess you like

Origin blog.csdn.net/a18845594188/article/details/132289085