Skip to content

Commit e19da2c

Browse files
authored
Add ~default vscode and devcontainer configs (#577)
1 parent 79ef310 commit e19da2c

File tree

5 files changed

+79
-0
lines changed

5 files changed

+79
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ARG DOCKER_TAG=release-v5.5.1
2+
FROM espressif/idf:${DOCKER_TAG}
3+
4+
ENV LC_ALL=C.UTF-8
5+
ENV LANG=C.UTF-8
6+
7+
RUN apt-get update -y && apt-get install udev -y
8+
9+
RUN echo "source /opt/esp/idf/export.sh > /dev/null 2>&1" >> ~/.bashrc
10+
11+
ENTRYPOINT [ "/opt/esp/entrypoint.sh" ]
12+
13+
CMD ["/bin/bash", "-c"]

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "ESP-IDF QEMU",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"customizations": {
7+
"vscode": {
8+
"settings": {
9+
"terminal.integrated.defaultProfile.linux": "bash",
10+
"idf.espIdfPath": "/opt/esp/idf",
11+
"idf.toolsPath": "/opt/esp",
12+
"idf.gitPath": "/usr/bin/git"
13+
},
14+
"extensions": [
15+
"espressif.esp-idf-extension",
16+
"espressif.esp-idf-web",
17+
"ms-vscode.cpptools"
18+
]
19+
}
20+
},
21+
"runArgs": ["--privileged"]
22+
}

.vscode/c_cpp_properties.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "ESP-IDF",
5+
"compilerPath": "${config:idf.toolsPath}/tools/riscv32-esp-elf/esp-14.2.0_20250730/riscv32-esp-elf/bin/riscv32-esp-elf-gcc",
6+
"compileCommands": "${config:idf.buildPath}/compile_commands.json",
7+
"includePath": [
8+
"${config:idf.espIdfPath}/components/**",
9+
"${config:idf.espIdfPathWin}/components/**",
10+
"${workspaceFolder}/**"
11+
],
12+
"browse": {
13+
"path": [
14+
"${config:idf.espIdfPath}/components",
15+
"${config:idf.espIdfPathWin}/components",
16+
"${workspaceFolder}"
17+
],
18+
"limitSymbolsToIncludedHeaders": true
19+
}
20+
}
21+
],
22+
"version": 4
23+
}

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "gdbtarget",
6+
"request": "attach",
7+
"name": "Eclipse CDT GDB Adapter"
8+
},
9+
{
10+
"type": "espidf",
11+
"name": "Launch",
12+
"request": "launch"
13+
}
14+
]
15+
}

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"C_Cpp.intelliSenseEngine": "default",
3+
"idf.pythonInstallPath": "/opt/esp/python_env/idf5.5_py3.12_env/bin/python",
4+
"idf.port": "/dev/ttyACM0",
5+
"idf.flashType": "UART"
6+
}

0 commit comments

Comments
 (0)