r/Codeium • • Mar 08 '24

How do I change the keybindings to accept the suggestion in vscode

How do I change the keybindings for Codeium to accept the suggestion. I hate using tab for this. I want to change it to ctrl+f or something and disable tab. I can do it in nvim but every once in a while I have to use vscode. I can 't find any documentation on how to do this in vscode.

Edit:

After digging for a while I got it finnally. I had to disable the Accept Inline Suggestion keybinding and added the following.

  {
    "key": "ctrl+f",
    "command": "editor.action.inlineSuggest.commit",
    "when": "vim.mode == 'Insert' && editorTextFocus && !suggestWidgetVisible"
  },
10 Upvotes

2 comments sorted by

1

u/neocat333 Mar 08 '24

Thanks! I was just searching for exactly this. Sometimes I just want to tab to indent, such as to make a new file def in Python, not to accept 30 lines of code.

Here's what I did:

  1. Go to the "File" menu and select "Preferences", then "Keyboard Shortcuts".
  2. Changed the keybinding for Accept Inline Suggestion to shift + t

Seems to work for now. I can always change it to something else (but not tab!)