How to Use VS Code with WSL via the Remote-WSL Extension
A complete walkthrough editing and debugging code that lives inside your WSL distro, using a Windows-installed VS Code, without ever copying files to the Windows side or fighting cross-filesystem performance.