Following their instructions for Fedora. Refer that page for your respective Linux distro
Install key and yum
repository
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
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" | sudo tee /etc/yum.repos.d/vscode.repo > /dev/null
Update the package cache and install code
dnf check-update
sudo dnf install code # or code-insiders
VSCode User preferences are stored in ~/.config/Code/User/
folder. These include files like settings.json
, keybindings.json
as well as your language-specific snippets in the snippets/
folder. Extensions are stored in the ~/.vscode/extensions
folder.
To view a list of your VSCode extensions: code --list-extensions
Preview a wide range of VSCode themes for your language at vscodethemes.com
You can refer my list of VSCode files:
Assuming you’re on the GNOME desktop environment (the default on Ubuntu, Fedora etc), your file manager by default is Nautilus. So, you can add a script to run as an option in your context menu when you right-click a folder or file. The scripts are stored in ~/.local/share/nautilus/scripts/
folder
Create the bash script file Open-in-VSCode.sh
:
nano ~/.local/share/nautilus/scripts/Open-in-VSCode.sh
Paste below contents into the file, save it and exit. Referred from this post
#!/usr/bin/env bash
code ${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}
Give it execution permission:
chmod +x ~/.local/share/nautilus/scripts/Open-in-VSCode.sh
Now you can see the Open-in-VSCode.sh
option in the Scripts
tab of the right-click menu