周围的麻瓜们都在用VS CODE我看了一下觉得还可以,决定入坑
在度娘上搜索VS CODE Ubuntu安装
如下
Ubuntu16.04下安装VS Code
在Ubuntu下面安装Visual Studio Code
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make sudo apt-get update sudo apt-get install ubuntu-make umake web visual-studio-code
但是在最后一步无情报错
rezin@rezin-IdeaCentre-B540p:~$ umake web visual-studio-code
usage: umake web [-h] {phantomjs,firefox-dev} ...
umake web: error: argument framework: invalid choice: 'visual-studio-code' (choose from 'phantomjs', 'firefox-dev')
架构冲突
再搜索发现一哥们的评论
我在安装的时候出现了这个错误 怎么解决
sudo 试试
sudo后还是不行,于是去vs官网寻求解决方案
Installation
Debian and Ubuntu based distributions
The easiest way to install for Debian/Ubuntu based distributions is to download and install the .deb package (64-bit) either through the graphical software center if it's available or through the command line with:
sudo dpkg -i <file>.deb
sudo apt-get install -f # Install dependencies
Installing the .deb package will automatically install the apt repository and signing key to enable auto-updating using the regular system mechanism. Note that 32-bit and .tar.gz binaries are also available on the download page.
The repository and key can also be installed manually with the following script:
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
Then update the package cache and install the package using:
sudo apt-get update
sudo apt-get install code # or code-insiders
微软老铁还是建议最简单的是下载deb安装包安装
下载后直接双击打开,点击install直接就装好了