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 plug-in in vscode

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article is about how vscode installs the c plug-in. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

How does vscode install the c plug-in?

First, you have to install vscode software.

I am an engineer who uses C language to develop embedded project. I have used "mdk integrated development environment" to edit project code for a long time, but because of the poor editing ability of mdk, I have been looking for an assistant editor to edit my embedded project code on the Internet. I finally took a fancy to the auxiliary editor of visual studio code, hereinafter referred to as VScode.

Although it is much more convenient to use VScode to edit my C language project, there are still many shortcomings when VScode is not installed and configured with any "plug-ins". For the automatic completion function, I suggest that you install and configure "clang plug-in" to enhance the intelligent reminder and automatic completion function of VScode. Next, I will explain how to install and configure "clang plug-in".

Step 1: open the VScode editor first

Step 2: click the "App Store" bar on the left

Part III: enter the keyword "clang" in the "App Store search extension" column

Part IV: installation prompts for the plug-in "CAccord + clang command"

Although "clang plug-in" is ostensibly installed on vscode here, VScode does not have "clang auto-completion function" at this time. Vscode will prompt an error as shown in the figure below. We also need to install the clang windows version of the software.

Matters needing attention

Warm reminder: the project folder opened by VScode had better not contain Chinese paths, otherwise "automatic jump function" (Cpicard + plug-in) may not be useful.

Then fellow developers of the C language project can download a VScode Great Icons plug-in that makes the small icons of "* .c" and "* .h" files more refreshing.

If it is not useful after following the above steps, you can try to add environment variables as follows: computer Properties-> Advanced system Settings-> Environment variables-> system variables, New-> variable name PATH, variable value C:\ LLVM\ bin, fill in according to the actual installation path.

Thank you for reading! On the vscode installation of c plug-in method to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people 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