Answer the question
In order to leave comments, you need to log in
How to integrate git-bash.exe into WebStorm/PhpStorm?
Help, help, save. Already tired of googling, there is no good information anywhere.
Everywhere it is advised to register in the IDE settings in the Terminal section either:
"C:\Program Files\Git\bin\sh.exe" -i --login
or:
C:\Program Files\Git\bin\bash.exe
1st option is generally a console crashes in the editor.
The second one starts, it's more or less buzzing, but there is no autocomplete in the git for branches, which is very necessary.
I saw a solution with Clink, but this is for the standard cmd.exe, but I need bash.exe with its pieces.
Git-bash.exe has autocomplete of both commands and branch names, great, but it doesn't run inside Storm.... Opens in a separate window.
How to achieve autocomplete in jetbrains then?
If that Win 10 x64, Jetbrains WebStorm 2019.3
Answer the question
In order to leave comments, you need to log in
So .... actually, I was just stupid. I'm sorry. Everything works, the autocomplete is already in
C:\Program Files\Git\bin\bash.exe
. I
just have aliases configured in bash:
alias go="git checkout"
and others, and the autocomplete doesn't understand them. Here you already need to separately search Google for how to tell the autocomplete that go = git checkout. If you write git checkout branch everything works
AND if respected moderators allow. I will add a link to the stackoverflow, with information on how to set up alias's in such a situation. Everything is extremely simple
https://stackoverflow.com/questions/9869227/git-au...
There is also such a script, maybe someone can help
https://artur.minimulin.ru/blog/git-autocomplete-c.. .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question