Install Visual Studio Code
Visual Studio Code is a versatile, user-friendly source code editor that supports extensions for multiple languages, including C#, C++ and python. Follow these steps to install Visual Studio Code on Linux and set up the necessary extensions.
Installation Instructions for Ubuntu/Debian
-
Download Visual Studio Code
Visit the Visual Studio Code download page and select the
.deb
package for Ubuntu/Debian systems. This will download the installer to your defaultDownloads
folder. -
Open a Terminal
Open a terminal on your system:
- Use the application menu to find “Terminal.”
- Or press
Ctrl + Alt + T
as a shortcut on most Ubuntu systems.
-
Navigate to the Download Location
By default, downloaded files are saved in the
~/Downloads
directory. Navigate there using:Then run the following command to install Visual Studio Code:
Installation Instructions for Fedora
-
Add the Repository
Open a terminal and add the Visual Studio Code repository and GPG key using the following commands:
-
Update the Package Cache
Update the package cache to ensure your system recognizes the new repository:
-
Install Visual Studio Code
For Fedora 22 and newer, install Visual Studio Code using:
For older systems, use:
Installation Instructions for Arch Linux
For Arch Linux, you have two primary installation options:
-
Install the Proprietary Visual Studio Code Binary from the AUR (preferred option)
This version includes Microsoft branding and telemetry, it’s maintained by the Arch User Repository (AUR). Install it with:
Note: If
yay
is not installed, you can use another AUR helper (such asparu
) or follow the AUR manual installation instructions. -
Install the Official Open-Source Version (Code - OSS)
The open-source version of Visual Studio Code is available directly from the Arch community repositories. Install it using:
Installing Extensions for Development
After setting up Visual Studio Code, enhance your development environment by adding essential extensions for C#, C++, and Python. These extensions provide robust tools for coding, debugging, and code intelligence, making your setup complete for SplashKit projects.
C# Extensions
Method 1: Via the Extensions Website
Install the following C# extensions directly from the Visual Studio Marketplace:
C# C# Dev Kit Intellicode for C# Dev KitMethod 2: Via the Command Line
You can also install these C# extensions directly from the terminal by running:
Method 3: Within Visual Studio Code
To add these extensions within Visual Studio Code:
- Open the Extensions view by pressing
Ctrl+Shift+X
. - Search for “C# Microsoft” and the top 3 extensions listed above should appear. Click Install for each. If they don’t then search for them individually.
C++ Extensions
Method 1: Via the Extensions Website
Install the C++ Extension Pack for comprehensive C++ support:
C++ Extension PackMethod 2: Via the Command Line
To install the C++ Extension Pack directly from the terminal:
Method 3: Within Visual Studio Code
To add the C++ extension within Visual Studio Code:
- Open the Extensions view (
Ctrl+Shift+X
). - Search for “C++ Extension Pack” and click Install.
Python Extensions
Method 1: Via the Extensions Website
For Python support, install the Python Extension Pack from the Visual Studio Marketplace:
Python Extension PackMethod 2: Via the Command Line
To install the Python Extension Pack directly from the terminal:
Method 3: Within Visual Studio Code
To install the Python extensions within Visual Studio Code:
- Open the Extensions view (
Ctrl+Shift+X
). - Search for “Python Extension Pack” and click Install.