ESP32-IDF: Integrate Terminal in Visual Studio Code

Hi,

if you have setup your ESP32 develop environment with Visual Studio Code you cannot integrate the mingw32 terminal within the Visual Studio Code terminal section.

But it’s possible if you start bash.exe instead of mingw32.exe.

Add the following config section to your settings.json file in your \.vscode folder. Adjust the esp-idf and esp-toolchain pathes and the TZ (Timezone) variable to your environment.

{
   .....
    "terminal.integrated.shell.windows":"C:\\Windows\\System32\\cmd.exe",
    "terminal.integrated.shellArgs.windows": ["/c","D:\\tools\\esp-toolchain\\msys32\\usr\\bin\\bash.exe"],
    "terminal.integrated.env.windows": {
        "ACLOCAL_PATH":"D:\\tools\\esp-toolchain\\msys32\\mingw32\\share\\aclocal;D:\\tools\\esp-toolchain\\msys32\\usr\\share\\aclocal",
        "IDF_PATH":"D:/tools/esp-idf",
        "PATH":"/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/opt/xtensa-esp32-elf/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl",
        "PKG_CONFIG_PATH":"/mingw32/lib/pkgconfig:/mingw32/share/pkgconfig",
        "TZ":"Europe/Berlin",
        "CONFIG_SITE":"/mingw32/etc/config.site"
     }
 }

You can get the time variable from a mingw32.exe terminal.

michael@windev MINGW32 ~ #
$ echo $TZ
Europe/Berlin

That’s it

Michael

Advertisment to support michlstechblog.info

Time limit is exhausted. Please reload CAPTCHA.

Original Theme by Schiy · Powered by WordPress