Skip to content

Instantly share code, notes, and snippets.

@rachids
Last active May 23, 2024 10:28
Show Gist options
  • Save rachids/062dfc8200d19a04131fea5c0d4e93fa to your computer and use it in GitHub Desktop.
Save rachids/062dfc8200d19a04131fea5c0d4e93fa to your computer and use it in GitHub Desktop.
Integrate Laragon's terminal (CMDer) to Visual Studio Code
{
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
},
"laragon": {
"path": "C:\\laragon\\bin\\cmder\\cmder.bat",
"args": [
"."
]
}
},
"terminal.integrated.defaultProfile.windows": "laragon"
}
@sixtusagbo
Copy link

Thank you so much!

@aasutossh
Copy link

aasutossh commented Jan 4, 2022

VS Code will complain about the snippet above, instead of the above snippet, add the following to settings.json.

    "terminal.integrated.profiles.windows": {
        "PowerShell": {
            "source": "PowerShell",
            "icon": "terminal-powershell"
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        },
        "Git Bash": {
            "source": "Git Bash"
        },
        "laragon": {
            "path": "C:\\laragon\\bin\\cmder\\cmder.bat",
            "args": [
                "."
            ],
        },
    },
    "terminal.integrated.defaultProfile.windows": "laragon",

Source: https://code.visualstudio.com/docs/editor/integrated-terminal#_terminal-profiles

@rachids
Copy link
Author

rachids commented Jan 6, 2022

Thanks for sharing @aasutossh, I updated the gist with yours ! 👍

@aasutossh
Copy link

My pleasure.

@popkilli
Copy link

Nice! Thx for the assistance.

@JanuzDev
Copy link

Thank you so much!

@rachids
Copy link
Author

rachids commented Sep 4, 2022

If you don't have a cmder.bat you can replace the "laragon" part with this instead:

"laragon": {
      "path": "${env:windir}\\System32\\cmd.exe",
      "args": ["/k", "C:\\laragon\\bin\\cmder\\vendor\\bin\\vscode_init.cmd"]
}

@rcreativepoutine
Copy link

You are an Angel! thanks!

@efronpaduansi
Copy link

Thank a lot

@AlbertComas83
Copy link

Thanks!

@JesusSGD
Copy link

If you don't have a cmder.bat you can replace the "laragon" part with this instead:

"laragon": {
      "path": "${env:windir}\\System32\\cmd.exe",
      "args": ["/k", "C:\\laragon\\bin\\cmder\\vendor\\bin\\vscode_init.cmd"]
}

Genial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment