source code editor developed by Microsoft
Visual Studio Code (commonly referred to as VS Code) is an integrated development environment developed by Microsoft for Windows, Linux, macOS and web browsers. Features include support for debugging, syntax highlighting, intelligent โ€ฆ Wikipedia
Factsheet
Original author Erich Gamma
Developer Microsoft
Release April 29, 2015; 11 years ago
Factsheet
Original author Erich Gamma
Developer Microsoft
Release April 29, 2015; 11 years ago
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ setup โ€บ windows
Installing Visual Studio Code on Windows
6 days ago - Visual Studio Code is available for Windows through a user installer, a system installer, and a ZIP archive.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ getstarted โ€บ overview
Get started with Visual Studio Code
3 weeks ago - Download the .rpm package from the VS Code download page. Install it with sudo dnf install ./<file>.rpm. Review the system requirements before you install VS Code on an older or managed device.
Discussions

vs code - How to Install VSCode on Windows as Administrator for data science projects without painful debugging and re-installations later? - Stack Overflow
I see a lot of misleading advice from newbie and non-system programmers that cause developers painful debugging and many lost hours that usually require reinstalling VSCode and Anaconda on Windows. I More on stackoverflow.com
๐ŸŒ stackoverflow.com
Windows 11 - Install VSCode to Program Files or AppData?
AppData is easy to update. You won't need to answer Administration permission dialog for every updates. More on reddit.com
๐ŸŒ r/vscode
2
0
June 2, 2023
Install Visual Studio Code for all users - Stack Overflow
The link to download the AMD64 system installer file is here. This link is on the Visual Studio Code installation and setup page in the 'User setup versus system setup' section: Visual Studio Code on Windows More on stackoverflow.com
๐ŸŒ stackoverflow.com
Difference between User and System Installer of Visual Studio Code - Stack Overflow
Visual Studio code offers User and System Installer but I have not found any description about the differences between these two options. Could someone please shed a light on this for me? More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ download
Download Visual Studio Code - Free AI Code Editor for Mac, Linux, Windows
4 weeks ago - Download Visual Studio Code for free on Linux, macOS, and Windows. The open source AI code editor for agent-first development, with built-in multi-agent workflows and AI-powered coding.
๐ŸŒ
Visual Studio Code
code.visualstudio.com โ€บ docs โ€บ setup โ€บ windows.md
Visualstudio
Visual Studio Code is available for Windows through a user installer, a system installer, and a ZIP archive.
Top answer
1 of 1
3

I created this set of instructions for people to follow.

#1) First make sure you are using an account with full System Administrator privileges to install (all) your tools.

Download and Install VSCode

  • Go to the Visual Studio Code download page: https://code.visualstudio.com/download
  • Choose and download the SYSTEM INSTALLER version that matches your OS (Windows, Linux, or macOS).
  • WARNING: *(DO NOT USE the "User Installer", because it will bury packages into an under-privileged "regular user" directory: "%HOMEPATH%\AppData\Local\Programs\Microsoft VS Code\", which will cause problems and make debugging work much harder later.)* MAKE SURE TO CHOOSE THE "SYSTEM INSTALLER"
  • Run installer and pay close attention to the prompts in the setup wizard.
  • Verify System Installer uses location "C:\Program Files\Microsoft VS Code".
  • As a system administrator, you can check the boxes that add VSCode to your system PATH and that create a desktop icon.
  • Once the installation is complete, you can launch VSCode.

Configure VSCode

  • After launching VSCode, you can customize it to your liking. You can install and change themes, keybindings, settings, and more by going to File > Preferences and editing the ominous settings.json file. (do this later because Copilot can help you tweak 100s of settings in VSCode.
  • You can also install extensions to add more functionality to VSCode. Extensions can be installed from the Extensions view, which can be opened by clicking on the Extensions icon in the Activity Bar on the side of the window.

Installing GitHub Copilot

  • Open the Extensions view in VSCode.
  • Search for "GitHub Copilot".
  • Click on the Install button.

Create a GitHub Account (if you don't already have one.)

  • Go to the GitHub signup page: https://github.com/join
  • Fill out the form with your desired username, email address, and password.
  • Click on the "Create account" button.
  • Follow the prompts to complete the account creation process.

Enable GitHub Copilot

  • After installing the GitHub Copilot extension in VSCode, it should be enabled by default. You can check if it's enabled by going to File > Preferences > Extensions, find GitHub Copilot, and make sure the checkbox next to it is checked.
  • You MUST sign in to your GitHub account for GitHub Copilot to work. To do this click on the GitHub icon in the Activity Bar, then click on "Sign in to GitHub.com" button.

How to Use GitHub Copilot

  • To start using GitHub Copilot, simply add a comment in a file in VSCode editor window or Jupyter Notebook that describes the functionality you want it to generate, hit Enter, wait a few seconds, and GitHub Copilot will automatically generate code and suggest completions as you type.
  • Accept a suggestion by pressing Tab or Enter, or ignore it and continue typing.
  • Manually trigger suggestions by pressing Ctrl+Enter.
  • Watch some of the MANY YouTube videos to learn dozens of tips and tricks on how to be super-productive with Copilot.

Remember, as a system administrator, you might need to provide administrator permissions at various steps in this process.

๐ŸŒ
Reddit
reddit.com โ€บ r/vscode โ€บ windows 11 - install vscode to program files or appdata?
r/vscode on Reddit: Windows 11 - Install VSCode to Program Files or AppData?
June 2, 2023 -

Hi Guys,

By default it seems to install VSCode to AppData, however as the only user on my PC I was wondering if there were any issues with installing to Program Files? I generally prefer software to go there as it makes it more mangible and easy to find, but i'm not sure if there is a strict reason why it wants to put everything in AppData?

Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ installation guide โ€บ how-to-install-visual-studio-code-on-windows
Install Visual Studio Code on Windows - GeeksforGeeks
January 15, 2026 - Visual Studio Code (VS Code) is a free, lightweight, and open-source code editor developed by Microsoft. It supports multiple operating systems, including Windows, macOS, and Linux.
๐ŸŒ
Lehigh Computer Science
docs.cse.lehigh.edu โ€บ vscode โ€บ installing-vscode-win
Installing Visual Studio Code on Windows - Lehigh Computer Science Docs
Optionally check the boxes for ... VS Code to the Right-Click menu functionality of Windows File Explorer, then click Next >. Confirm the installation options, then click Install. The installation will proceed. Click Finish to exit the installation and (by default) launch Visual Studio ...
๐ŸŒ
Microsoft Store
apps.microsoft.com โ€บ detail โ€บ xp9khm4bk9fz7q
Visual Studio Code - Download and install on Windows | Microsoft Store
Visual Studio Code is a free, lightweight, and extensible code editor for building web, desktop, and mobile applications, using any programming language and framework. Visual Studio Code has built-in support for Git source control management and powerful integrations with GitHub, an integrated ...
๐ŸŒ
InfoWorld
infoworld.com โ€บ home โ€บ software development โ€บ development tools
Get started with Microsoftโ€™s Visual Studio Code | InfoWorld
January 24, 2024 - Itโ€™s also possible to use the popular Homebrew package manager: brew install --cask visual-studio-code. Another useful way to run VS Code is in portable mode. With portable mode, VS Code does not modify the system itโ€™s installed on and keeps all its data in its own directory.
Top answer
1 of 5
95

User setup for Windows

Announced last release, the user setup package for Windows is now available on stable. Installing the user setup does not require Administrator privileges as the location will be under your user Local AppData (LOCALAPPDATA) folder. User setup also provides a smoother background update experience.

Download User Setup

If you are a current user of the system-wide Windows setup, you will be prompted to install user setup, which we recommend using from now on. Don't worry, all your settings and extensions will be kept during the transition. During installation, you will also be prompted to uninstall the system-wide setup.

Reference: https://code.visualstudio.com/updates/v1_26#_user-setup-for-windows

2 of 5
59

I installed the user version side-by-side with the system version with no problems. The basic differences between the two is that the system version installs on the file system like every other app. The user install is basically a click-once (or web installer) version that installs in the User folder of the machine.

The settings made to VS Code in the system version save for Everybody on the computer and the user version the settings are only for the user. I find that the behavior of the user version is a bit annoying for me because I have reasons to want to open multiple copies of VS Code at the same time and the user version only allows one instance. Otherwise, there's not really anything different between the two as far as I can tell.

๐ŸŒ
Cuantum
cuantum.tech โ€บ post โ€บ stepbystep-guide-to-installing-visual-studio-code-vs-code-on-windows-mac-and-linux
Step-by-Step Guide to Installing Visual Studio Code (VS Code) on Windows, Mac, and Linux | Cuantum Technologies
October 3, 2025 - ... 3. Once the download is complete, ... is complete, you can launch VS Code from the terminal by typing: ... Visit the Visual Studio Code download page....
๐ŸŒ
Reddit
reddit.com โ€บ r/cpp_questions โ€บ setting up vscode from ground up
r/cpp_questions on Reddit: Setting up VSCode from ground up
May 19, 2025 -

Last update: 18.05.2025

Preface

  • This is a simple guide for complete beginners to set up VSCode from ground up. That means you barely installed the OS and that's it

  • There are 2 tutorials. One for Windows and one for Debian. I'm not saying this is the best setup for either OS, but it's an easy one and gets you going. Once you know C++ a bit better you can look further into how everything works

    • For Windows I created and tested this guide with a fresh installation of Windows 11 (more specifically Win11_24H2_EnglishInternational_x64.iso) in VirtualBox

    • For Debian I used Debian 12 (more specifically debian-12.10.0-amd64-netinst.iso) in VirtualBox

  • The first part of this guide is only for Debian. If you're on Windows you can just skip the parts not marked for your system

  • If you are on Windows, please just use Visual Studio Community Edition which is an actual IDE compared to VSCode

    • It's way easier to set up

    • You're not doing yourself a favor, if you insist in using VSCode

  • Regardless of Windows or Linux I also highly recommend to have a look at CLion, which has a free hobby license. In my opinion it's the best IDE out there

But since VSCode is so prevalent in guides and tutorials, here is the definitive beginner guide to set up VSCode:

Tutorial

Software setup (Debian)

  • Start Terminal

  • Type sudo test and press ENTER

  • If you get an error message we need to set up sudo for you in the next block. If there is no error message you can skip it

Adding your user to sudo (Debian)

  • Type su root and press ENTER

  • Enter your root password. If you didn't specify one its probably the same as your normal user

  • Type /usr/sbin/usermod -aG sudo vboxuser

    • Replace vboxuser with your user name and press ENTER

  • Restart your system once and open Terminal again

Install required software (Debian)

  • Open https://code.visualstudio.com/docs/?dv=linux64 in your browser. It will download the current VSCode in a compressed folder.

  • Go back to your Terminal and type these commands and press ENTER afterwards:

    • sudo apt update -y

    • sudo apt upgrade -y

    • sudo apt install build-essential cmake gdb -y

    • cd ~

    • tar -xvzf ~/Downloads/code-stable-x64-1746623059.tar.gz

      • The specific name for the file may change with time. Its enough to type tar -xvzf ~/Downloads/code-stable and press TAB, it should auto-complete the whole name

    • Open your file explorer. There should now be a directory called VSCode-linux-x64 in your home directory. Open it and double-click code to open VSCode

Software setup (Windows)

  • Download and install CMake using the .msi installer https://cmake.org/download

    • Accept all defaults during installation

  • Download and install MSYS2 using the .exe installer https://www.msys2.org

    • Accept all defaults during installation

    • After installation you will be asked to run MSYS2 now. Accept that.

    • Enter pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain into the command prompt and press ENTER

      • If you want to copy the command use your mouse. Don't use keyboard shortcuts to paste!

    • MSYS2 will show you a list of packages to install. Accept them all by just pressing ENTER

    • You're now shown a list of software packages that will be installed and you're asked if you want to proceed with the installation. Type "Y" and press ENTER

    • After installation close the MSYS2 window

  • Download and install VSCode https://code.visualstudio.com/docs/?dv=win64user

    • Accept all defaults during installation

    • After installation you're asked to run VSCode now. Accept that

Setup VSCode (Debian and Windows)

  • In your top bar go to File -> Add Folder To Workspace

  • Create a new folder, name it what ever you want. Then open this folder to set it as your workspace

  • Switch to your EXPLORER tab in your left bar

  • Create a file CMakeLists.txt in your workspace

    • VSCode will ask you if you want to install the extension CMake Tools. Install it

  • Add the following content to your CMakeLists.txt:

 

cmake_minimum_required(VERSION 4.0)
set(CMAKE_CXX_STANDARD 20) # Set higher if you can
project(LearnProject)

# Add your source files here
add_executable(LearnProject
	src/main.cpp
)

# Add compiler warnings 
add_compile_options(LearnProject
	-Wall -Wextra
)
  • You don't need to know how CMake works and what it does. For now it's okay to just know: it will create the executable from your source code

  • As you go further in your journey with C++ you have to add more source files. Simply add them in the next line after src/main.cpp

  • Create a new folder inside your workspace called src

  • Add a new file inside this src folder called main.cpp

    • VSCode will ask you if you want to install the extension C/C++ Extension Pack. Install it

  • Add the following content to your main.cpp file and save:

 

#include <iostream>
int main() {
	std::cout << "Hello World";
} 
  • Your workspace should now have the following structure:

 

Workspace:
  - src
    - main.cpp
  - CMakeLists.txt
  • In your bottom left there should be a button called Build followed by a button that looks like a bug and a triangle pointing to the right

    • The Build button will build your application

      • You need to do this after every change if you want to run your code

      • (Actually, most times CMake will detect changes and compile again if needed. But sometimes it doesn't and then you're wondering why your changes don't work. It's also just a good habit to compile your stuff)

    • The bug button starts your code in a debugger

      • I recommend you to always start with the debugger. It adds additional checks to your code to find errors, which is very useful for beginners

    • The triangle button starts your code without debugger

  • Press Build and VSCode will ask you for a Kit at the top of your window

    • If you can already choose GCC, select it

    • Otherwise, run [Scan for kits] and accept to search in the suggested paths

      • Press Build again and chose GCC now

    • Your compiler is now set up

  • On Windows your #include <iostream> may have a red line underneath it. In that case you need to setup IntelliSense

    • Press the yellow alert symbol in the bottom part of your window

    • Select Use g++.exe in the top part of your window

  • Click on the bug button and let it run your code. VSCode will open the DEBUG CONSOLE and print a lot of stuff you don't need to know yet

    • Switch to TERMINAL

      • If you're on Debian it will show the output of your program followed by something like [1] + Done "/usr/bin/gdb" ... Just ignore that

      • If you're on Windows the output will be some garbage before your output

  • Go to File -> Preferences -> Settings and type Cpp Standard into the search bar

    • Set Cpp Standard to c++20 or higher

    • Set C Standard to c17 or higher

Congratulations. Your VSCode is now up and running. Good luck with your journey.

If you're following this guide and you're having trouble with something, please me know in the comments. I will expand this guide to cover your case.

๐ŸŒ
Tntech
sites.tntech.edu โ€บ acrockett โ€บ 2026 โ€บ 04 โ€บ 15 โ€บ install-set-up-visual-studio-code-vs-code-on-windows
Install & Set up Visual Studio Code (VS Code) on Windows โ€“ April Crockett
April 15, 2026 - Download either the 32-bit or 64-bit Windows User Installer version of Visual Studio Code (VS Code) from the link https://code.visualstudio.com/download . To know if you have 32- or 64-bit, Right click on This PC in Windows File Explorer and go to Properties.
๐ŸŒ
Visual Studio
visualstudio.microsoft.com โ€บ downloads
Visual Studio Downloads for Windows
September 24, 2026 - Are you looking for one of the Visual Studio 2022 long term servicing baselines (LTSCs)? You can find them here. ... Download our cross-platform extension that supports deep learning frameworks including Google TensorFlow, Keras, & more. ... A powerful code editor optimized for building and debugging modern web and cloud applications. ... This package installs ...
๐ŸŒ
Tilburg Science Hub
tilburgsciencehub.com โ€บ topics โ€บ computer-setup โ€บ software-installation โ€บ ide โ€บ vscode
Set up Visual Studio Code - Tilburg Science Hub
- You should see a confirming message ... can open VS Code in your terminal now by typing $ code . and hitting enter! Go to the downloads page and download the right package for the system you are using....
๐ŸŒ
Spatial Thoughts
courses.spatialthoughts.com โ€บ install-vscode.html
Visual Studio Code Installation Guide
Visit the Download Visual Studio Code page and download the User Installer for your your processor type. This will download an .exe file. Intel-processor based system should download the x64 version and the ARM-processor based systems should use the Arm64 version.
๐ŸŒ
Reddit
reddit.com โ€บ r/vscode โ€บ should i use the user or system installer?
r/vscode on Reddit: Should I use the User or System Installer?
December 13, 2019 - "This User Installer is not meant to be run as an Administrator. If you would like to install VS Code for all users in this system, download the System Installer instead..."