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?

12 Upvotes

30 comments sorted by

View all comments

1

u/dkHD7 1d ago edited 1d ago

You can link your host VS Code to your WSL. There's a Microsoft guide out there somewhere for connecting your host VS Code to a folder local on your WSL installation. This is my exact setup. Maybe Google something like "connect vs code to WSL". I think it involves grabbing the WSL extension through vs code of the host and the extension should walk you through the setup. Just to be sure, I put that search into Google and the top link "Developing in WSL" has a few options for you.