Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of installing c language environment in vscode

2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about vscode installation c language environment method, small make up feel quite practical, so share to everyone as a reference, hope you can have some harvest after reading this article.

Install C/C++ extensions

Second, install the compilation environment mingw-w64

Configure environment variables, take WIN10 as an example, this computer-properties-advanced system settings-environment variables-system variables-path-add an E:\mingw-w64\mingw32\bin\(address of compilation environment you installed)

III. Configure vscode

1. After opening the folder, create a new hello.c for testing:

2. Press F5 to debug, the following marks appear, and select

3. Select launch.json and generate a launch.json startup configuration file in the working directory: and modify the corresponding file

4. Go back to hello.c and press F5 to debug. You need to select the configuration task.

5. Configure c_cpp_properties.json

IV. OTHER

Once and for all: Because VS needs to configure each folder separately, it is recommended to put the.vscode folder at the top of your favorite folders so that you don't have to duplicate the configuration. Not every new cpp file requires a set of configurations. These configurations are available in all subfolders and files within your configured folder.

Note: There are Chinese characters in printf statement, and random characters are displayed during debugging. The following operations can be carried out.

About vscode installation c language environment method to share here, hope the above content can have some help to everyone, can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report