## 參考文獻 [Windows 右键菜单打开MSYS-MinGW](https://blog.csdn.net/u012824671/article/details/78627526) [NotePad++ - 安装和配置C/C++开发插件](http://blog.chinaunix.net/uid-21714580-id-121904.html) ## 安裝MSYS2 [Eclipse use minGW entry Debug mode](https://hackmd.io/@HugoPeng/Hk2DPngCn) ## 新建處理文件 於C:\msys64\mingw64新增mingw64.bat ``` @echo off rem MSYS2的Shell路徑 set MSYS2=C:\msys64\msys2_shell.cmd rem -mingw32 使用32-bit shell rem -mingw64 使用64-bit shell rem -here 表示進入當前目錄 %MSYS2% -mingw64 -here ``` ![2](https://hackmd.io/_uploads/By4Uh44Ha.png) ## 修改登陸檔 ### 新增右鍵顯示名稱 1. cmd -> regedit 2. 於\HKEY_CLASSES_ROOT\Directory\background\shell新增機碼,名稱命名MinGW64 3. 修改預設值字串資料為MinGW Shell。此資料為右鍵會顯示的名稱 4. 新增icon字串名稱。資料變更為C:\msys64\mingw64.exe ![1](https://hackmd.io/_uploads/Hky6sN4Bp.png) ### 開啟MinGW64引數 1. 於\HKEY_CLASSES_ROOT\Directory\background\shell\MinGW64新增機碼,名稱命名command 2. 修改預設值字串資料為C:\msys64\mingw64\mingw64.bat。此資料為開啟MinGW64的引數 ![3](https://hackmd.io/_uploads/HyiNTVEBT.png) ## 測試 ![4](https://hackmd.io/_uploads/B1r6pN4B6.png)