Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98442

Using WSL g++ Compiler From Visual Studio Code (Windows 10)

$
0
0

I've really been struggling for a long time to get VS Code to work properly so I'm finally deciding to post my question here. I'm using Visual Studio Code on Windows 10 to write C++ code. For the class I'm taking I have to be able to run my code on a Linux machine. I have been using the remote WSL mode within VS Code but it is driving me crazy for two reasons.

  1. The enhanced syntax colorization doesn't work from the remote mode.
  2. I need to turn my files in for a class and I can't access the Linux files from Windows 10 explorer.

So the ideal situation would be to use the regular (not remote) version of Visual Studio Code but still compile and debug with Linux. The Visual Code Documentation (https://code.visualstudio.com/docs/cpp/config-msvc) makes it appear as though this is possible but I have no idea what the compiler path is for WSL g++. Any suggestions?


Viewing all articles
Browse latest Browse all 98442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>