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

How to replace Arduino Development Environment with VSCode in mac

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

Share

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

This article introduces the relevant knowledge of "how to use VSCode to replace the Arduino development environment with mac". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Modify setting.json file configuration "editor.formatOnType": true, "arduino.path": "/ Applications/Arduino.app/", "arduino.commandPath": "Contents/MacOS/Arduino", "arduino.skipHeaderProvider": true, "C_Cpp.intelliSenseEngine": "Tag Parser" repair IntelliSense, the code will prompt an error

After all this work is done, VSCode still has no IntelliSense, and the code prompts for errors and cannot jump to the definition. There is this sentence in setting.json:

"C_Cpp.intelliSenseEngine": "Tag Parser"

In addition, the c_cpp_properties.json configuration file under the .vscode folder under the project, if not, can be created manually. Z mainly modify the "includePath" configuration node to add the path to be searched.

The specific path root will vary from day to day, according to the actual installation path of the library.

{"configurations": [{"name": "Mac", "includePath": ["/ Users/user/Library/Arduino15/packages/esp32/tools/**", "/ Users/user/Library/Arduino15/packages/esp32/hardware/esp32/1.0.2/**", "/ Users/user/Documents/Arduino/libraries/**"], "forcedInclude": [] "macFrameworkPath": ["/ System/Library/Frameworks", "/ Library/Frameworks"], "intelliSenseMode": "clang-x64", "compilerPath": "/ usr/bin/clang", "cStandard": "c11", "cppStandard": "centering 17"}] "version": "how mac replaces the Arduino development environment with VSCode" ends here. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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