vscode 配置默認shell 使用 git-bash; vscode 默認文件保存,配合git使用,完美兼容linux編程環境

最近對需要用的論文,進行歸檔;但是在服務器上看pdf,寫latex始終不是很方便。因爲工作場所的環境是windows平臺,所以今天基於git-bash配置了工作環境,現在將vscode 自定義配置貼出來,方便之後參考;

{
    "remote.SSH.remotePlatform": {
        "zju.yaowenxu.cn": "linux"
    },
    "window.zoomLevel": 1,
    "terminal.integrated.profiles.windows": {
        "git-bash": {
          "path": "D:\\Git\\bin\\bash.exe",
          "args": [
             "-l", // 這個 -l 好像是必須的
          ]
        }
      },
    "terminal.integrated.defaultProfile.windows": "git-bash",
    "git.path":"D:\\Git\\cmd\\git.exe",
}

參考的鏈接:https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles

git-bash 配置效果:

保持更新;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章