1. In VSCode, CTRL + Shift + P opens the command to search Settings
Select Open Settings (JSON)
2. Click the link and search for Use Cmder Embedded Git in VSCode
Copy three lines of code into VSCode’s settings.json file:
"git.enabled": true,
"git.path": "[cmder_root]\vendor\git-for-windows\cmd\git.exe",
"terminal.integrated.shell.windows": "[cmder_root]\vendor\git-for-windows\bin\bash.exe",
Copy the code
Compatible with the latest vscode
"git.enabled": true,
"git.path": "[cmder_root]\\vendor\\git-for-windows\\cmd\\git.exe",
"terminal.integrated.profiles.windows": {
"bash": {
"path": "[cmder_root]\\vendor\\git-for-windows\\bin\\bash.exe",
"args": []
}
},
"terminal.integrated.defaultProfile.windows": "bash",
Copy the code
3. After the replication, replace all the previous paths with [cmder_root] with the root directory of the Cmder
Open Everything and search for Cmder to find the installation root folder of Cmder
Then right-click to copy the full path and file name, as shown:
Note: You need to add a double slash to the directory after pasting
4. How to copy and paste in CMDER
- Click Auto copy
- Right mouse button is pasted