复制输入如下参数,然后确定:
–compile-commands-dir=${workspaceFolder} --background-index --completion-style=detailed --header-insertion=never -log=info
安装bear工具
luckfox@luckfox:~/luckfox-pico$ sudo apt-get install bear
luckfox@luckfox:~/luckfox-pico$ bear ./build.sh
重启vscode,连接使用,F12自动跳转
参考链接:https://blog.csdn.net/domybest111/article/details/131541507