现象:点击图标打开没有反应。直接输入code报错:
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
解决办法:
vi ~/.bashrc
#添加一行
alias code='/usr/share/code/code . --no-sandbox --unity-launch'
#保存生效
source ~/.bashrc
Linux机器上vscode安装后打不开
最新推荐文章于 2024-06-16 23:39:13 发布