In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Learn how to configure the c language development environment with vscode? This problem may be often seen in our daily study or work. I hope you can gain a lot from this article. Here is the reference content brought by the editor. Let's take a look at it!
Get the CAccord Category + extension
Open vscode, use the ctrl+shift+x shortcut to open the store, search for Cmax Candle stores, install the plug-in and restart vscode
Install GCC
Download MinGW to open the installer, install it to disk D (you need to create a MinGW folder), and generate MinGW installation manager after installation is complete. Manager automatically opens (if not manually), click All Packages, select gcc.bin,g++.bin,gdb.bin, click Installation, select Apply Changes, and click Apply submit to install.
Win+R, enter control to enter the control panel, click system and install-> system-> Advanced system Settings-> Environment variables, find Path- > Edit-> New, and paste the bin folder path of the installed MinGW.
Configure Smart Tip
Write a test file demo.c, click the "prompt light" under the introduced standard library, and generate the c_cpp_properties.json file.
Edit c_cpp_properties.json
The modification of c_cpp_properties.json is as follows:
Turn on debugging function
F5 or Ctrl+F5 enable debugging, select C++ (GDB/LLDB) to generate launch.json file, and modify as follows:
Ctrl+Shift+P, enter the Tasks:Configure Task configuration task, select the module to create the task.json file, select the Others template, and generate the task.json file. Modify as follows:
If there is an error: process termination, exit code: 1, it may be that gcc has not been loaded by the editor (test method: open the console, enter gcc, see the prompt), restart the editor.
Thank you for reading the above, do you have a general understanding of the article "how to configure the c language development environment with vscode"? I hope the content of the article will be helpful to you. If you want to know more about the content of the article, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.