Posts

Showing posts with the label C89

Install WSL & Code C in VS Code on Windows 10/11

Image
Photo by Fotis Fotopoulos on Unsplash Summary: Enable Windows Subsystems for Linux (WSL) for Windows 10/11 on PC. Install the WSL extension on VS Code. Connect to WSL on VS Code. Access the Linux directory on File Explorer. Run C code on Microsoft Visual Code Studio (VS Code) through WSL. Install WSL: Search Command Prompt (cmd) and open it. Once the Command Prompt opens, enter the following code into the terminal. wsl --install WSL will install in a few seconds as noted in cmd . Ubuntu: Once WSL is installed, search Ubuntu and open it. You will be prompted to create a username and password for Ubuntu on the terminal. (The password will be invisible on the terminal). Once you have created your credentials, enter each of the codes into the Ubuntu terminal. sudo apt update sudo apt install build-essential Verify the version using the code below to see if it is installed. gcc --version Linux Folder in File Explorer: Open File Explorer and go to the following directory below. Linux...