Gloria Ideas

Mastering VSCode: Quick Guide - apt install Visual Studio Code

Looking to enhance your coding experience on Linux? You might want to consider using Visual Studio Code (VSCode), a popular lightweight yet feature-rich code editor. If you're already familiar with the apt package manager, installing VSCode is a breeze. Let's dive into how to get VSCode up and running on your Linux system using apt.

VS Code Shortcuts Every Beginner Programmer Should Know
VS Code Shortcuts Every Beginner Programmer Should Know

Before we proceed, ensure that your system has the necessary permissions to install software. If not, you may need to use sudo for the commands mentioned below.

My Visual Studio Code Setup
My Visual Studio Code Setup

Installing Visual Studio Code

VSCode is available in the default repositories of popular Linux distributions like Ubuntu and Debian, making it easy to install using apt.

Visual Studio 2017 Installation
Visual Studio 2017 Installation

The first step is to update your package list to ensure you have the latest information about available packages:

Updating the Package List

How to Install Visual Studio Code on Debian 12
How to Install Visual Studio Code on Debian 12

Open your terminal and type the following command to update the package list:

sudo apt update

Installing VSCode

Now that your package list is up-to-date, you can install VSCode. Here's how:

VS Code: Installation
VS Code: Installation
  1. Open your terminal and run the following command to install VSCode:

sudo apt install -y visual-studio-code

  • Once the installation is complete, you can launch VSCode by typing:
  • code

    Extending Visual Studio Code

    How To Install Microsoft Visual Studio Code on Linux - nixCraft
    How To Install Microsoft Visual Studio Code on Linux - nixCraft

    VSCode's true power lies in its extensibility. With thousands of extensions available in the VSCode Marketplace, you can tailor your coding environment to suit your specific needs.

    To access the Marketplace, open VSCode and press Ctrl + Shift + X or navigate to View > Extensions in the menu. You can search, install, and manage extensions from here.

    How to run C# in Visual Studio Code
    How to run C# in Visual Studio Code
    Visual Studio Shit
    Visual Studio Shit
    How To Install Visual Studio Code On Windows 11
    How To Install Visual Studio Code On Windows 11
    Edit in Visual Studio Code for the Web in Power Apps Portals
    Edit in Visual Studio Code for the Web in Power Apps Portals
    How To Setup Visual Studio Code For Salesforce Development
    How To Setup Visual Studio Code For Salesforce Development
    Visual Studio vs Visual Studio Code: What's Different?
    Visual Studio vs Visual Studio Code: What's Different?
    an image of a computer screen with some type of text and numbers on the screen
    an image of a computer screen with some type of text and numbers on the screen
    visual studio code logo
    visual studio code logo
    Uninstall Visual Studio Code
    Uninstall Visual Studio Code
    Top Visual Studio Code Extensions: 50 Tools, and Snippets
    Top Visual Studio Code Extensions: 50 Tools, and Snippets
    Install Visual Studio Code on Debian
    Install Visual Studio Code on Debian
    Visual Studio Code shortcut to move lines up or down | website development
    Visual Studio Code shortcut to move lines up or down | website development
    Arduino + Visual Studio = Fast Dev.
    Arduino + Visual Studio = Fast Dev.
    How to Code Without Burning Out
    How to Code Without Burning Out
    LLMOps - Serve a Llama-3 model with BentoML | Towards Data Science
    LLMOps - Serve a Llama-3 model with BentoML | Towards Data Science
    How can I switch word wrap on and off in Visual Studio Code?
    How can I switch word wrap on and off in Visual Studio Code?
    Visual Studio Code Extensions ( 12 Best VScode Extensions)
    Visual Studio Code Extensions ( 12 Best VScode Extensions)
    Master Apache Airflow: How to Install and Setup the Environment in 10 Minutes | Towards Data Science
    Master Apache Airflow: How to Install and Setup the Environment in 10 Minutes | Towards Data Science
    Fall in Love with Your Environment Setup: Vagrant Edition | Towards Data Science
    Fall in Love with Your Environment Setup: Vagrant Edition | Towards Data Science
    an image of a computer screen with the words learn for free written in red on it
    an image of a computer screen with the words learn for free written in red on it

    Popular Extensions for Linux Users

    Here are a few extensions you might find useful as a Linux user:

    • Remote - SSH: Allows you to edit files on remote hosts right from VSCode.
    • Remote - WSL: Provides language server support and other features for Windows Subsystem for Linux (WSL) integrations.
    • Setting sync: Syncs your VSCode settings and extensions across all your machines.

    Configuring VSCode for Your Project

    VSCode offers a range of settings and configurations to tailor your coding environment. You can open the Settings panel by pressings Ctrl + , or go to File > Preferences > Settings in the menu.

    For deeper customization, consider creating workspace configurations or using launch.json for debugging. VSCode's extensive documentation is an excellent resource for this.

    There you have it - an optimized VSCode setup on Linux using apt. Now you're ready to take advantage of VSCode's powerful features and extensibility to streamline your coding workflow. Happy coding!

    Read Next