Visual Studio Code
My IDE of choice is Visual Studio Code. Microsoft has been much more friendly to Open Source Software under the command of CEO Satya Nadella, which is a breath of fresh air after former CEO Steve Ballmer once likened Linux to a cancer on intellectual property.
To get started with VS Code you can install either via apt or from source. I will install with apt.
First, update the packages index and install the dependencies by typing:
sudo apt update
sudo apt install software-properties-common apt-transport-https wget
Update for Ubuntu 22.04 / 24.04:
Per this link: apt-key is deprecated in Ubuntu 22.04. Use these instructions instead (they worked for me):
sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
rm -f packages.microsoft.gpg
Note that I used trash-cli vice rm on the last line.
Next, import the Microsoft GPG key using the following wget command (note this command uses a “pipe” redirection)
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
And enable the Visual Studio Code repository by typing:
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
Install the latest version of Visual Studio Code with:
sudo apt update
sudo apt install code
Launch VS Code by opening a new terminal and typing:
code
And that’s it! You are now running VS Code!
Over the next several weeks I plan to do a series of tutorials covering VS Code.
Credits
https://linuxize.com/post/how-to-install-visual-studio-code-on-ubuntu-18-04/
Docker Desktop WSL integration: https://stackoverflow.com/questions/63497928/ubuntu-wsl-with-docker-could-not-be-found