杂七杂八之Ubuntu-16.04安装 vs code
1.安装微软Visual Studio Code:
首先需要安装Ubuntu Make。虽然Ubuntu Make存在Ubuntu15.04官方库中,但是需要Ubuntu Make 0.7以上版本才能安装Visual Studio。所以,需要通过官方PPA更新到最新的Ubuntu Make。此PPA支持Ubuntu 14.04, 14.10 和 15.04。
注意,仅支持64位版本。
打开终端,使用下列命令,通过官方PPA来安装Ubuntu Make:
sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make sudo apt-get update sudo apt-get install ubuntu-make
安装Ubuntu Make完后,接着使用下列命令安装:
umake web visual-studio-code
如果出现如下状况:
usage: umake web [-h] {firefox-dev,phantomjs} ... umake web: error: argument framework: invalid choice: 'visual-studio-code' (choose from 'firefox-dev', 'phantomjs')
请用如下命令安装:
sudo umake ide visual-studio-code
安装过程中会询问安装路径,我是直接确认采用默认路径。如下图:
WARNING: Visual Studio Code is now in the ide category, please refer it from this category from now on. This compatibility will be dropped after Ubuntu 16.04 LTS. Choose installation path: /home/lyb/.local/share/umake/web/visual-studio-code MICROSOFT SOFTWARE LICENSE TERMS MICROSOFT VISUAL STUDIO CODE
遇到下图直接选择a接受即可。
It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your state or country may not allow the exclusion or limitation of incidental, consequential or other damages. [我接受 (a)/我不接受 (N)]
至此,VS code已经安装完成,至于使用使用哪种语言进行开发工作需要安装什么插件,怎么下回见再讲。