Install vscode on Linux platform

    vscode is a lightweight, cross-platform, open source IDE developed by Microsoft. Since its release in 2015, it has been loved by programmers and developers. vscode supports a variety of mainstream programming languages, including c, c++, Java, js, golang, php, python, R, etc. It can be edited and debugged through the corresponding language pack plug-ins. It is quick to get started and easy to upgrade and deploy.
    The following describes how to install vscode on Linux.

1. Enter root mode

su root
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

2. Use the yum command to install

yum check-update
sudo yum install code

    All the way by default, until the installation is complete.

3. Change to normal user hello and open vscode

su hello           //切换到普通用户
/usr/share/code/bin/code

Guess you like

Origin blog.csdn.net/sanqima/article/details/113623957