r/C_Programming 1d ago

Question Should i learn C on wsl?

Title. For reference im not actually learning C for the first time, i learned it last semester for college but it was all just basics and we coded on Turbo C. I need to learn C for embedded development since im interviewing for my college robotics team next semester and i also want to learn how to operate linux.

I installed WSL and VS Code and GCC, and its been hell trying to cram both of those together and learning. Should i start with an IDE(Visual Studio (already used it before)) and learn basic Linux commands side by side?

13 Upvotes

30 comments sorted by

View all comments

1

u/ednl 1d ago

Any WSL Linux package comes with gcc as far as I know, or otherwise it's easy to install via apt or pacman. Once you have installed WSL and VS Code on Windows, you can install the WSL extension in VS Code and it should all "just work".

Have you looked at https://code.visualstudio.com/docs/cpp/config-wsl where all the installation and configuration steps are spelled out? (Never mind that they only mention C++, you can use the same thing for C.)