Vscode 配置 ESP-IDF 扩展问题解决方法

修改pip源

新建文件夹 mkdir ~/.pip ,然后创创建文件 vim ~/.pip/pip.conf 添加如下内容

1
2
3
4
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn

串口权限

Ubuntu 系统

1
sudo usermod -a -G dialout $USER

ArchLinux

1
sudo usermod -a -G uucp $USER

有些还是无法跳转的问题

工程第一次编译通过后,在 .vscode/c_cpp_properties.jsonconfigurations 中添加

1
"compileCommands": "${workspaceFolder}/build/compile_commands.json",

加快编译速度

在vscode的ESP-IDF设置里开启缓存,在Vscode的设置中搜索idf:Enable CCache 然后勾上。