[英]How to configure compiler for WSL and visual studio code
I am new to linux, c++, and visual studio code.我是 linux、c++ 和 Visual Studio 代码的新手。 Right now, the compiler I have installed does not match the required year for my class, which is g++ 2017. I am wondering how to add the compiler, which is on the linux environment, to visual studio code.
现在,我安装的编译器与我的 class 所需的年份不匹配,即 g++ 2017。我想知道如何将 ZE206A54E97690CCE566Z9 环境中的编译器添加到 Visual Studio 代码。
Thank you!谢谢!
You can start here:你可以从这里开始:
Using C++ and WSL in VS Code在 VS 代码中使用 C++ 和 WSL
There is a VSCode extension Remote - WSL that simplifies the setup.有一个 VSCode 扩展Remote - WSL可以简化设置。
Don't worry about the exact compiler version, a newer version should work fine (better even).不要担心确切的编译器版本,更新的版本应该可以正常工作(甚至更好)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.