vscode的安装卸载

ubuntu 虚拟机上安装vscode,遇到了很多奇怪的问题,包括:1)安装完,启动快捷方式不见;2)EXTENSIONS 安装异常;3)C/C++ extension 安装完之后 go to definition 失效;4)extension 在线更新异常;

来来回回试了几种安装方法,这里介绍一套安装和卸载vscode的方法,以及安装VSIX的方法。
ubuntu-make介绍:
Ubuntu Make is a command line tool which allows you to download the latest version of popular developer tools on your installation, installing it alongside all of the required dependencies (which will only ask for root access if you don’t have all the required dependencies installed already), enable multi-arch on your system if you are on a 64 bit machine, integrate it with the Unity launcher. Basically, one command to get your system ready to develop with!
详细介绍: https://wiki.ubuntu.com/ubuntu-make

  1. PPA安装Ubuntu make
    sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
    sudo apt-get update
    sudo apt-get install ubuntu-make

  2. 安装
    umake ide visual-studio-code

  3. 卸载
    umake ide visual-studio-code --remove

  4. 使用umake命令行
    比如, 查找那些通过umake安装的环境.
    $umake --list-installed
    ps: 使用 umake -h

  5. 在线安装extentions失败的安装处理:
    1.下载vsix
    cpptools-linux.vsix - for 64-bit Linux

    1. 安装
      左上方的省略号,中间有“Install for VSIX”
      vscode的安装卸载_第1张图片

你可能感兴趣的:(linux,C++)