How can I set keyboard shortcuts for select suggestion in vscode quickFix menu?

Viewed 588

I use vscode with vim extension and I want navigate on quickFix menu by ctrl+j and ctrl+k shortcuts, how I can do that?

enter image description here

1 Answers

I think that isn't possible because VS code uses native menu to show Quick Fix suggestions, according to this.

There is an extension attempted to work around this by showing the suggestions on quick open instead of native menu so we can navigate through the suggestion using shortcut we usually use on quick open. Although, I can't get the extension work on my Flutter project.

Despite the fact that we can't navigate up and down, we can navigate the menu by typing the first letter of the one of the suggestions. In your example, we can select the Wrap with widget menu by pressing w, then we can go to Wrap with Center by pressing w again. Pressing w will cycle through menu that starts with w. I got this working on Ubuntu 20.04 but I don't know if this works on other OSes.

Related