Home Setup VScode (incl Remote Development)
Post
Cancel

Setup VScode (incl Remote Development)

Visual Studio Code and remote development extension

Info: In this walk through we are setting up VScode on a Windows 11 environment with WSL2:Ubuntu already installed and up to date

Why the remote development extension

This is personal choice, totally optional, and if you don’t want to do it you will easily find other methods favoured by other people online

What is remote development used for

In this environment it is used to access the filesystem used in WSL2 and can execute code inside WSL2. It is an efficient way of working that allows you to shut down your dev environment when not in use by just not running your WSL2 distro. Oftentimes installing runtime environments in windows will have the undesired effect that it uses system resources even when you are not using it

To-Do

Check Pre-Requisities and Dependancies

  • Latest Windows 11 (or 10) updates are installed
  • PC or Laptop is recently cold restarted
  • WSL2:Ubuntu (or distro of choice) is installed and updated

Download VS Code

Simple enough, download from here: Visual Studio Community Edition or search with your favourite search engine

Remember to verify your downloaded file checksum before running any executable files you download from the internet, even if you are sure you have downloaded the real file from the genuine site

Install VS Code

For the latest and most accurate representation of steps you should refer to the official installation guides provides by the VScode team

Download Remote Development Extension

Install Remote Development Extension

Run VS Code and Connect to WSL2:Ubuntu

This post is licensed under CC BY 4.0 by the author.