cancel
Showing results for 
Search instead for 
Did you mean: 

Intellisense configuration

sb_st
Senior

Hi, I am trying to transition from cubeIDE to the VSCode workflow, and am having trouble getting intellisense working. I'm relatively inexperienced with this (I appreciate that cubeIDE 'just worked' in this regard, and I never had to deal with figuring out how to configure this). 

I've tried starting from a relatively vanilla state - I only install the STM32CubeIDE VSCode extension pack. I *think* I need to also install the C/C++ extension from MS in order to get/enable intellisense for developing stm32 projects (?)

Within my project, some things seem to work - I can right-click on some functions and see/jump to definitions. In other cases, I see errors about undeclared variables/defines/macros or other miscellaneous "problems", none of which the compiler actually complains about. I'm confused why this seems spotty within the project. 

Then, I have an out-of-project shared code area. I've set this up relatively simply (there are no "library" CMakeLists.txt files in this area, just .c/.h files), and intellisense seems completely unable to make sense of this area. There are hundreds of problems reported, red squiggles everywhere, but again when I build, there are zero errors, so I'm pretty confident this is just intellisense not being configured properly. This, again, was not an issue I had to grapple with with cubeIDE, so I'm trying to come up to speed with how to manage it here. 

I'm curious if there's a resource offering some tips about how to be doing this?

0 REPLIES 0