I have tried changing the settings for "terminal.integrated.shell.windows"
to babun mintty
location. But the babun shell window opens separately and doesn't integrate with the VS code. Anyone knows how to achieve this?
相关问题
- Extended message for commit via Visual Studio Code
- Where are Automatic Type Acquisition typescript de
- Typescript: Why doesn't visual studio code rep
- .NET Core 3.1 CreateHostBuilder Cannot parse JSON
- How to get VS Code debug data like breakpoints, st
相关文章
- Visual Studio Code, MAC OS X, OmniSharp server is
- Omnisharp in VS Code produces a lot of warnings ab
- Visual Studio Code command for “repeat last comman
- VSCode remove warnings from problems tab
- Configure a TypeScript project with common depende
- Visual Studio Code disabling Normal, Edit and Visu
- Vscode: error TS2307: Cannot find module 'vsco
- How to customize context menu in Visual Studio Cod
After trying for 2 hours finally made it work.
Before reading my way of doing this, you might want to got through this issue first.
By default
babun
is installed inC:\Users\13000\.babun\
. So we can configure it by overriding user setting inVS Code
as:After saving , reload the window and you are done.
You will get something like :
Hope this helps!
I was searching for any solution for this issue before and I could not find any. But I was curious how Babun itself run the command "Open Babun here" from right-click menu and noticed it runs this command:
I've tried setting
mintty.exe
as shell and using leading commands as shell arguments, but this method opens an external terminal. I've noticed this behavior is because usingmintty.exe
, so I replacedmintty.exe
withenv.exe
itself. At last, these are the settings:Edit: This might not completely relate to this question, but because of having the similarity, I think it might worth mentioning.
During my search for a solution, I've seen many other questions about the same issue for integrating Atom's PlatformIO IDE Terminal package or JetBrain's IDEs with Babun's zsh.
In the case of Atom, setting the Shell Override to
C:\Users\YOURUSER\.babun\cygwin\bin\env.exe
and Shell Arguments toCHERE_INVOKING=1 /bin/zsh.exe
openszsh.exe
as an integrated terminal in the project directory.In the case of JetBrain, I've used WebStrom and this works:
Just complementing the correct answer that
Pramesh Bajracharya
gave above, you can override user settings in VS Codeopening the VS Code
and going in:And then paste in the field shown in your right side (
WORKSPACE SETTINGS
):More information can be found in https://code.visualstudio.com/docs/editor/integrated-terminal
Thanks Pramesh Bajracharya!