@jewel
To install Visual Studio Code on Ubuntu using the terminal, follow these steps:
- First, update the package manager index by running the following command:
- Next, install the GPG key for the official Visual Studio Code repository by running the following command:
1
|
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
|
- Add the Visual Studio Code repository to your system by running the following command:
1
|
sudo sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
|
- Update the package manager index again by running the following command:
- Finally, install Visual Studio Code by running the following command:
This will install Visual Studio Code on your Ubuntu system. You can then launch Visual Studio Code by searching for it in the application launcher or by running the following command in the terminal: