-
Hi, I have seen a lot of issues that were closed and people were referred to the "Remote: WSL" extension.
TLDR: How to use this extension with WSL? All I want to do is to build the same project in the same folder once with MSVC and once with GCC WSL, preferably even without having two VS Code windows open. Is there any tutorial or documentation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Question 1: There shouldn't be an issue installing the extension on WSL, regardless of how you open a WSL window: Would you explain more about what kind of error you encounter when trying to install the extension? Question 2: Can you run {
"name": "GCC 7.5.0 x86_64-linux-gnu",
"compilers": {
"C": "/usr/bin/gcc-7",
"CXX": "/usr/bin/g++-7"
} |
Beta Was this translation helpful? Give feedback.
Extensions don't generally need to be designed for WSL/WSL2 because the underlying system should be reporting to the extension that it is operating in a linux environment. It sounds like something is not configured correctly. I am running the extension in WSL2 and it picks
/usr/bin/cmake
for me. I tried both a workspace in the linux filesystem and something on/mnt/d
.Can you share what the value of
Cmake: CMake Path
is? I'm wondering if you overrode the setting at some point.