Pico SDK VS Code Auto Completion

Hi there :waving_hand:t2:

I was able to run the pico-w-blink-sdk successfully, however I wasn't able to get the Pico SDK auto completion to work.

I have tried to add set(CMAKE_EXPORT_COMPILE_COMMANDS ON) in CMakeLists.txt but that didn't help.

I would appreciate the help :folded_hands:t2:

1 Like

In my experience, you need to manually copy generated compile_commands.json file inside build folder to source root (where CMakeLists resides) to make LSP aware of it.

I am not familiar with CMake so I don't know how this can be automated, but it did work (with neovim and sourcekit-lsp).