You can make VS Code as default text editor for text files with the following command: # xdg-mime default sktop text/plain If you see a screen something like below, congratulations! You have successfully installed Microsoft Visual Studio Code in your Linux distribution. Once installed, you can open the VS Code editor using command: $ code Update the package cache and install VS Code as shown below. $ sudo rpm -import $ sudo sh -c 'echo -e "\nname=Visual Studio Code\nbaseurl=\nenabled=1\ntype=rpm-md\ngpgcheck=1\ngpgkey=" > /etc/zypp/repos.d/vscode.repo' On SUSE/openSUSE, run the following commands to import singing key VS Code repository. On RHEL, CentOS, Fedora, run the following commands to import singing key VS Code repository: $ sudo rpm -import $ sudo sh -c 'echo -e "\nname=Visual Studio Code\nbaseurl=\nenabled=1\ngpgcheck=1\ngpgkey=" > /etc//vscode.repo' Then, update the repository lists and install VS Code as shown below. On Ubuntu and its derivatives, run these commands to to import singing key VS Code repository: $ curl | gpg -dearmor > microsoft.gpg $ sudo mv microsoft.gpg /etc/apt//microsoft.gpg $ sudo sh -c 'echo "deb stable main" > /etc/apt//vscode.list' Microsoft developers has made VS Code repositories for different Linux distributions to ease the installation. Install Microsoft Visual Studio Code In Linux
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |