![]() VSCode now comes with the “Remote - WSL” extension, which makes it effortless to use your Linux Distro( I use Ubuntu 18.04 ) in WSL2 with VSCode on the Windows 10 host, enabling you to edit and debug your code on VSCode, while the code is executed in the WSL2 Linux distro, and any local development server’s output on the WSL2 distro is proxied to localhost in your host Windows 10 environment, accessible through a browser like Chrome or Firefox and any Terminal based output can be seen and interacted with in the BASH shell provided by VSCode and it’s “Remote - WSL” extension.įirst you need to make sure that your Win10 installation is upgraded to it’s latest version, WSL2 needs Version 1903 as a minimum. WSL2, which stands for Windows Subsystem for Linux is a Windows feature that allows you to use Linux in Windows 10, through a lightweight VM running a full featured Linux Kernel maintained by Microsoft and a “userland” distro of your choice like Ubuntu, Fedora or OpenSUSE, this gives you a shell like Bash and total Linux compatibility from the system call level, and fast file IO performance as you would expect on a native Linux distro. VSCode is a popular “Text Editor” however packed with features that come to close to an IDE, without compromising on ease of use and the associated high resource usage. ![]() Or even switching to dual booting with a Linux distro, which comes with it’s own problems of possible driver issues and lesser battery life on Laptops when compared to Windows, along with a lack of certain software products like Adobe’s Illustrator, XD or Photoshop.īut now, that has changed with the advent of WSL2 and VSCode with the “Remote - WSL” extension. ![]() In this post, we will setup VSCode along with WSL2 to create the perfect development workflow, negating the need for dual-booting a Linux distro.įor many years Web Development was a painful experience on Windows, since all the industry standard tooling like compilers, runtimes, package managers, version control software and even shell utilities were built with and used with a Linux or Unix distribution in mind, causing developers to either spend a long time setting up and fixing disparate utilities and tooling for their Windows system or using bulky, unintuitive and resource heavy IDEs. How WSL2 and VSCode Make Windows 10 the Best OS for Software Development Friday, MaPosted in
0 Comments
Leave a Reply. |