Open PowerShell / Windows Terminal and execute “ wsl” to start your Linux Distribution.Download Visual Studio Code either from its official website, or use Chocolatey to install VSCode:ĭownload Visual Studio Code – Mac, Linux, WindowsĬhocolatey Software | Visual Studio Code 1.52.1.I’m assuming that you’re doing this on the same computer / virtual machine as you installed WSL 2 already. Today, I’m going to show you how you can set up Visual Studio Code to use it with your already installed WSL 2 Linux distribution (at least when you read my previous blog post and followed the guide there). With the combination of WSL 2 and VSCode, I’m able to write scripts (or playbooks in Ansible terms) and run them directly in the same tool. ![]() If it detects that you’re writing something in YAML, it might help you with a pop-up that there is an extension for it, for example, to properly highlight the syntax of that language. ![]() And you don’t even need a registration nor a login to download it! VSCode also supports a variety of extensions. It’s fast, supports a wide range of languages, and it’s free. I’ve tested some Linux distributions, tried to connect remotely with my coding tool of choice, Visual Studio Code, but all were complex or didn’t work as expected. ![]() I’m currently learning Ansible and I was searching for a solution that fits my needs in terms of usability, knowledge, etc. Recently, I’ve published a blog post on how to set up the Windows Subsystem for Linux version 2 (WSL 2).
0 Comments
Leave a Reply. |