Which keybinding to use to accept suggestion other than TAB? #45434
Replies: 6 comments 2 replies
-
Hello and good day @corneliusroemer Another option you may consider is remapping the Tab key to a different keybinding in Vim insert mode, such as ctrl+Tab or ctrl+space, in order to retain the default behavior of the Tab key for indentation. You can add the following to your .vimrc file and test it out. inoremap This will map ctrl+Tab and ctrl+space to the Tab key in insert mode, allowing you to use the Tab key for indentation as usual and avoid accepting suggestions accidentally. Food for thought. |
Beta Was this translation helpful? Give feedback.
-
Hi, @corneliusroemer! Shift+Return is a common combination for accepting suggestions as well. |
Beta Was this translation helpful? Give feedback.
-
What command is the accept-Copilot's suggestion to map the keyboard shortcut? What's broken. Help is appreciated. |
Beta Was this translation helpful? Give feedback.
-
The same issue is happening with Visual Studio 2022 (not VS Code). Hitting to accept a Copilot suggestion in a markdown file indents the line instead. The suggestion is to go into Tools -> Options -> Environment -> Keyboard and change the shortcut. I am unable to find the Copilot Command Name to change the 'tab' binding to another, say one of the G1-6 keys on my Logitech G613 keyboard. There are 10 other command names, Edit.Copilot.*, but none are mapped to Tab. Does anybody know the command name for Visual Studio 2022? Thank you. |
Beta Was this translation helpful? Give feedback.
-
As a vim user I'm hitting the same issue. After being pressured by management to install Co-Pilot and try to show how it can make me more productive...here I set...no clue how I'm ever going to be reimbursed for this and out of the box it is difficult to use. So for right now all I can tell it is doing is slowing down my computer so much that it often cannot even keep up with what I'm trying to type. I tried adjusting the keybindings but fell into the same trap as fbrier. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I use the Copilot extension with VS Code where I also have the Vim extension activated and am on macOS.
In Vim insert mode, you don't want to press Esc to dismiss a suggestion. So when you actually want to enter a real Tab and not accept the copilot suggestion I'm stuck with default keybindings being that Tab accepts the suggestion.
What do you guys use in this situation? Surely I'm not alone!
I've looked around the keyboard for other shortcuts I could use and come up with
cmd+m
. That shortcut is already mapped to minimize windows, which is a stupid thing to do, so it's good to disable anyways.Following https://apple.stackexchange.com/a/73957/330523 I disabled that system shortcut and mapped
cmd+m
to do the suggestion acceptance as follows:What do you all do? Any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions