zed
zed copied to clipboard
Add a Hotkey to toggle inline suggestions like we have on vscode
Check for existing issues
- [X] Completed
Describe the feature
The ideal way would be configuring a hotkey to trigger inline suggestions
If applicable, add mockups / screenshots to help present your vision of the feature
No response
If I understand you correctly, you're looking for alt-\
.
There's any way to replace that hotkey with something else?
There's any way to replace that hotkey with something else?
You can open the default keybindings by opening the command pallet by pressing cmd-shift-p
and selecting zed: open default keymap
. There you will see all the keymaps that you can override by selecting zed: open keymap
from the command palette and constructing your own keymaps.
If you want to change the suggested key combination, you can find the copilot::Suggest
command and override it in the keymaps.json
file, for example like this
[
{
"context": "Editor && mode == full",
"bindings": {
"ctrl-shift-right": "copilot::Suggest"
}
}
]
You can find out more in the Key bindings docs.
It seems like in the current stable, it is all or nothing.
You can have it either turned on
"show_copilot_suggestions": true
and it auto pops up as you type.
Or it is turned off
"show_copilot_suggestions": false
and then copilot::Suggest
does nothing.
Hi @alex35mil,
I can reproduce the issue you are seeing. After I disable inline completions (either per-language or globally) triggering copilot::Suggest
does nothing. I believe this is a bug.
Second, unrelated to your issue show_copilot_suggestions
will be deprecated shortly. Please switch to use show_inline_completions
going forward.
just want to bump this, I hate when the completions show up automatically, but that means I can't use it all in zed with this bug 😢