Yes, this is how my workflow is setup. First, obviously install Julia on WSL2 and make sure your julia binary is in
PATH. I would also get rid of your Windows Julia installation as to avoid any conflicts. From the vscode side (assuming its installed on windows), simply download the WSL extension and configure it (basically just open up a folder on your WSL 2 instance). Once you have vscode successfully configured with WSL2, download the Julia extension. Make sure to install this julia extension on the "remote " instance of vscode – see my image example below. This should pretty much be it.
Here’s how my extensions look like in VS Code: