Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Cmder inside VScode #1704

Closed
ifyour opened this issue Mar 12, 2018 · 13 comments
Closed

Run Cmder inside VScode #1704

ifyour opened this issue Mar 12, 2018 · 13 comments

Comments

@ifyour
Copy link

ifyour commented Mar 12, 2018

VSCode settings

"terminal.integrated.env.windows": {"CMDER_ROOT": "D:\\soft\\cmder"},
"terminal.integrated.shellArgs.windows": ["/k D:\\soft\\cmder\\vendor\\init.bat"],

Environment

- Windows 7
- VSCode 1.21.1
- Cmder 1.3.2

It's work!! 👍

image

@rehack
Copy link

rehack commented Mar 16, 2018

@ifyour 为什么我按照你上面的的配置配置好之后,重启vscode,然后打开终端就报错,
_20180316213242

@ifyour
Copy link
Author

ifyour commented Mar 16, 2018

@Codesboy 你这个是 powershell ?你的 Comder 确定是以 cmd 启动的

@rehack
Copy link

rehack commented Mar 16, 2018

@ifyour 没错 是以cmd启动的,win10+cmder1.3.5+vscode1.21.1
_20180316224638

@ifyour
Copy link
Author

ifyour commented Mar 16, 2018

@Codesboy 参考下这里 http://www.igakki.com/?p=329

@rehack
Copy link

rehack commented Mar 16, 2018

@ifyour 我在vscode里添加了一项配置"terminal.integrated.shell.windows": "cmd.exe", 然后就可以了

@DRSDavidSoft
Copy link
Contributor

Running VS Code with Cygwin on Cmder

Running VS Code with Cygwin on Cmder

@DRSDavidSoft
Copy link
Contributor

More info: microsoft/vscode#12006

@initial-wu
Copy link

@ifyour 启动后默认进入 C:\User[用户名] ,能不能配置成直接进入 vscode 当前项目目录?

@etiennejcharles
Copy link

Doesn't work if path cotains spaces, this would be a better example

 "terminal.integrated.shellArgs.windows": [
    "/k C:\\Program^ Files\\cmder\\vendor\\init.bat"
  ]

@upupming
Copy link

Also, remember to replace the λ in cmder/vendor/clink.lua, otherwise there will be an invisible extra whitespace when you use left/right arrow keys:

// Before
local lambda = "λ"

// After
local lambda = "$"

@HoneyHunter
Copy link

" Terminal.integrated.shell.windows " : " cmd.exe " ,
"terminal.integrated.env.windows": {"CMDER_ROOT": "C:\apps\cmder"},
"terminal.integrated.shellArgs.windows": ["/k C:\apps\cmder\vendor\init.bat"],

It's only working when you use the cmder into VS Code.
If you try to change the VS Code terminal to Bash or powershell, you will get an error.
I don't know how to fix it.
vsCode

@cooper1x
Copy link

"terminal.integrated.shell.windows": "cmd.exe",

  "terminal.integrated.env.windows": {
    "CMDER_ROOT": "C:\\sx\\cmder_mini\\Cmder.exe"
  },
  "terminal.integrated.shellArgs.windows": [
    "/k",
    "C:\\sx\\cmder_mini\\vendor\\bin\\vscode_init.cmd"
  ]

为什么我的不行呢?
image
按照文档写的
image
Seamless VS Code Integration · cmderdev/cmder Wiki

@cooper1x
Copy link

上个问题解决了,是我写错了路径,把Cmder.exe去掉就好。
另外想问下,如果想关联为git bash版本的cmder怎么配置呢?

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

No branches or pull requests

9 participants