Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
486 views
in Technique[技术] by (71.8m points)

esp32 - How to integrate msys2 console in vscode?

So what I would need to do is having the console of msys2 for ESP32 controller inside the VS Studio, for the sake of less windows opened, and the less time required to change between them. This will help me to focus both on the explorer code and terminal in the same time. The reason why I use msys2 over cmd, is the version of esp-idf. I need the version V3.3 for a project.

enter image description here (founded here)

The code what I ended up with is this, in the blink.code-workspace file :

{
    "folders": [
        {
            "path": "."
        }
    ],
    "settings": {
        "terminal.integrated.shell.windows": "D:\esp\msys2\usr\bin\bash.exe",
        "terminal.integrated.env.windows":
        {
            "MSYSTEM": "MINGW64",
            //"MSYS2_PATH_TYPE": "inherit",
            "MSVSCODE": "1"
        },
        "terminal.integrated.shellArgs.windows": [
            "/k",
            "D:/esp/esp-idf/export.bat"
        ]
    }
}

The first 2 rows integrate msys2 into the VSCode, which it works (just in terminal, without tasks).

The third row it brings IDF_PATH to the console, but only on cmd console (4.1 esp-idf verssion). I need somehow to bring IDF_PATH or idf.py by msys2 console into vscode (V3.3 is what I use). Hope it make sense.

After almost 2 weeks of intense searching and researching I wounder, is this even possible ?

question from:https://stackoverflow.com/questions/65845743/how-to-integrate-msys2-console-in-vscode

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...