vscode在ubuntu中安装步骤
第一步 :https://code.visualstudio.com/Download
第二部:下载太慢了换地址,我的是这个下载链接
https://az764295.vo.msecnd.net/stable/5e805b79fcb6ba4c2d23712967df89a089da575b/code_1.76.1-1678294265_amd64.deb
换成
https://vscode.cdn.azure.cn/stable/5e805b79fcb6ba4c2d23712967df89a089da575b/code_1.76.1-1678294265_amd64.deb
第三部安装:sudo dpkg -i code_1.76.1-1678294265_amd64.deb,带颜色的地方是安装包名字,根据自己下的安装包名字替换
第四部:如果是在root用户下装的,需要:
vi ~/.bashrc 进入这个文件
alias code='/usr/share/code/code . --no-sandbox --unity-launch' 在末尾按o 添加
source ~/.bashrc 生效文件