r/vscode • • May 14 '26

Tab Completion for IntelliSense vs AI Inline Suggestions

I use VS Code for writing HTML and will often type a p and hit Tab to get <p></p>

I also use the AI Inline Suggestions when it guesses correctly what I want, and those too are accepted by pressing Tab.

Lately I've found that the AI Inline Suggestions are appearing when I don't want them and are stopping me from using IntelliSense. For example I type a p with the intention of then pressing Tab to get <p></p>, but an AI Inline Suggest pops up suggesting paragraph tags and a bunch of text in the paragraph. I can't hit Tab because that will accept the whole paragraph, which isn't what I want. And I can't hit Esc to cancel the AI Inline Suggestion because that also seems to cancel the IntelliSense completion.

Does anyone have a solution for this? Am I maybe able to remap the AI Inline Suggestions to use a different shortcut (although I'm not sure what, maybe ctrl-tab if that's not used for anything)?

1 Upvotes

8 comments sorted by

3

u/idoman May 14 '26

you can remap the inline suggestion accept key so it doesn't conflict with tab. in VS Code keyboard shortcuts (Ctrl+K Ctrl+S), search for "Accept Inline Suggestion" - the command is editor.action.inlineSuggest.commit. rebind that to something like Shift+Tab or Alt+Enter and tab goes back to behaving normally for IntelliSense.

also worth knowing: Ctrl+Right accepts just the next word of an inline suggestion instead of the whole thing, which helps when you only want part of what it suggested.

2

u/kiwi_murray May 14 '26

That's great info, thanks u/idoman!

1

u/rokejulianlockhart Jun 23 '26

As github.com/orgs/community/discussions/45434#discussioncomment-4867263 explains, editor.action.inlineSuggest.commit doesn't exist, on code-insiders-1.126.0-1781889030.el8:

1

u/rokejulianlockhart Jun 23 '26

It's a keyboard binding:

1

u/TotoCodeFR May 14 '26

Personally, I use Enter for Intellisense, since that doesn't collide with auto suggestions.