0

If I open a PHP project in VSCode by right-clicking on the project folder, all the PHP functionality is working. If I hover on an object or function, I see the references, etc. If I do right click, I have many options like Go to Definition, Import Class ...

Howeever, if I open the project with Remote WSL, these functions are not working anymore, and when doing a right click, I don't have most of options that I had before. Also, the code formaters are not working.

Is there any solution to have all VSCode functions available working via Remote WSL?

My dev environment is DevilBox which is installed in Docker Container on WSL2.

2 Answers 2

4

So, I found the solution to this issue :)

In VSCode I have the extensions installed locally. In order to work in WSL, is necessary to install them in WSL as well.

When opening a WSL remote connection and clicking on Extensions, VS Code shows "Local - Installed" and "WSL: UBUNTU - Installed". The Local Installed extensions which are not available in WSL are dimmed and have a green button "Install in WSL: .."

Sign up to request clarification or add additional context in comments.

2 Comments

to note: there are many extensions that may require more configuring... such as task managers, the absolute path needs to be considered
2

I just typed Code . instead of code . and it works Possibly also check that VSCode folder is in PATH variable

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.