linux机器上vscode安装后打不开问题解决

现象:点击图标打开没有反应。直接输入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

posted @ 2022-06-29 13:33  宇宙刘  阅读(3835)  评论(0)    收藏  举报