Windows下VSCode執行Bash終端

2021-08-14 23:02:24 字數 402 閱讀 2512

可能windows開發的乙個缺點就是與shell結合的不好,git bash提供了一種方式可以在windows下執行linux命令,如何將其結合在vscode中使用呢?

參考回答:

兩種方式:1. 將git bash目錄比如c:\program files (x86)\git\bin\bash.exe新增到環境變數中,就可以vscode終端輸入bash進入bash模式了, 同理,輸入cmd即可返回預設cmd模式。

2. 如果想預設設定bash模式,可以編輯使用者設定檔案,新增"terminal.integrated.shell.windows": "c:\\program files (x86)\\git\\bin\\bash.exe"

Windows下VSCode執行Bash終端

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!可能windows開發的乙個缺點就是與shell結合的不好,git bash提供了一種方式可以在windows下執行linux命令,如何將其結合在vscode中使用呢?參考回答 兩種方式 1.將git bash目錄比如c program files...

Windows下VSCode配置Golang環境

安裝golang的sdk 安裝vscode 的go外掛程式 建立go mod 區別於gopath的包管理 go1.1.1推出的 寫個helloworld go mod 一種包的管理方式 modules和傳統的gopath不同,不需要包含例如src,bin這樣的子目錄,乙個源 目錄甚至是空目錄都可以作...

windows下用VSCODE開發stm32踩的坑

vscode vscode stm32cubemx openocd jlink自己網上找資源吧 mingw 或者mingw64 mingw mingw64資源也自己找吧 arm none eabi gcc arm none eabi gcc第乙個坑 建立工程時一定要開啟debug,否則編譯時應使用m...