I'm using VS Code on Mac. I frequently use integrated terminal in VS Code for performing command line operations relevant to my workspace/project [instead of using Terminal or iTerm].
I am able to use autocomplete for basic shell commands via Integrated terminal in VS Code.
For example doing cd
followed by a Tab
automatically suggests possible directory options for me [just like Terminal or iTerm would].
However, this automatic suggestion doesn't work for git commands.
For example, doing git br
followed by a Tab
should complete to git branch
but that's not working.
I looked at User Settings in VS Code [by invoking Cmd + Shift + P
-> User Settings -> User -> Extensions -> Git
I verified my default terminal for Mac is "Terminal". But however, it's not picking Git commands for autocomplete.
What's missing?
Related issue: https://github.com/Microsoft/vscode/issues/17748
You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.)
Why is VS Code suggestions not working? If you're coding in JavaScript or TypeScript and finds that VSCode IntelliSense does work but does not behave properly, it's likely that you've selected the wrong language mode. TypeScript and JavaScript share the same language service, so you need to select the right language.
If you're using zsh shell, there is a good and quick solution for it right in this discussion. Git tab completion not working in zsh on mac
Then in VSCode, choose zsh as your default terminal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With