r/ClaudeCode • • 6h ago

Bug / Issue Using tab to autocomplete commands inside vscode terminal

Figured I’d find answers more easily. Am I the only one experiencing vs code changing cursor focus after tabbing to autocomplete a command (or anything else, like file references using ‘@‘)? Any suggestions on how to fix?

2 Upvotes

5 comments sorted by

•

u/AutoModerator 6h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/Dry-Creme-3281 6h ago

Check whether vs codes "Tab Moves Focus" mode is enabled. Ctrl+M toggles it and terminal keybinding conflicts are worth checking if that does nott fix it

1

u/Severe-Milk-6728 5h ago

When I toggle this setting it switches so tab loses focus and no autocomplete is made. So switches focus in either case. I can check keybinding conflicts.

1

u/AdventurousItem4635 4h ago

If Tab Moves Focus isn't it, try "terminal.integrated.sendKeybindingsToShell": true in settings.json. It makes the terminal pass every key straight through instead of VS Code grabbing some of them first, so Tab and the @ picker behave like they do in a normal terminal.

Other one to try is turning off terminal.integrated.suggest.enabled, VS Code's own terminal suggestions want Tab too.

1

u/Severe-Milk-6728 1h ago

Thanks for the reply! None of these worked, and I realized a few things that might be unique to my setup.

- this only happens in Claude, not other terminal commands
- I’m using iTerm and zsh, which appears to carry over to vscode
- with this setup, tab shows autocomplete options, and I need to use right arrow to finish the autocomplete

Any idea?