当前位置:网站首页>Using Visual Studio code to develop Arduino

Using Visual Studio code to develop Arduino

2022-04-23 18:52:00 Brick Porter

It is said that Visual Studio There are also plug-ins , But I am vs2019 This plugin was not found in the , Probably stopped developing .

Use Arduino No hints for development , And if it provides its own classes and functions, there is no header and no error in the file . There is no automatic prompt , Code coloring is also equal to no . There is no function of jump definition , This is basically a configuration Arduino Text editor for compilation options . It's not really friendly for people who write code . Novices have no way to start . Turn to source code ? Find out if it's for 9102 Our times are still too backward , Moreover, novices may not know which file it is in , You have to use full-text search .

Fortunately Visual Studio Code Provides Arduino Support plug-ins , It's also easy to use . Directly above

Search in plug-ins Arduino, Find this Microsoft official plug-in .

Once installed , Click plug in settings .

Then go down and find Arduino:Path, Add your arduino route .

This basically completes the configuration .

then  

Open one arduino Folder , Of course, you can build it yourself .arduino The directory is the same as the project file , I don't know whether it must be consistent or not. It's said that inconsistency has no effect .

At this time, the automatic completion and prompt will not come out , Because it doesn't have a configuration file yet , At this time, click the position at the bottom right of the status bar , Of course, I have configured it here 8266, If you don't configure it, click this location directly , A selection box will pop up , Just choose the right configuration ,

  And then click   Let the compiler run once , In this way, a .vscode Catalog

  These two are its configuration files , here , Look at the status bar in the lower right corner ,

The default here is win32 Switch to arduino At this point, autocomplete and jump header files can be used . In addition, if a new library is added , Also configure it here .

 

 

版权声明
本文为[Brick Porter]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210603257054.html