docs:添加常见问题及解决方案

This commit is contained in:
DuRuofu
2025-01-06 16:28:16 +08:00
parent df344bb44d
commit 03c922f1be
18 changed files with 81 additions and 27 deletions

View File

@@ -0,0 +1,45 @@
## 1. 头文件跳转的问题
#### **问题**
>我们使用VS Code打开ESP32项目有时我们的代码头文件无法跳转写代码没有代码提示。
无法跳转:
![](attachments/20240129231028.png)
无有效代码提示:
![](attachments/20240129232435.png)
#### 解决方案:
先编译代码:
![](attachments/20240129231103.png)
然后找到`build`下的`compile_commands.json`文件:
![](attachments/20240129231253.png)
右键复制绝对路径:
![](attachments/20240129231616.png)
然后打开命令面板:
![](attachments/20240129231412.png)
找到这一项:
![](attachments/20240129231444.png)
将绝对路径复制到编译命令:
![](attachments/20240129231711.png)
然后就能正常跳转到源码了
![](attachments/20240129231954.png)
代码提示也有了:
![](attachments/20240129232230.png)