Skip to content

PascalSenn/keyboard-quickfix

Repository files navigation

Important

There is movement on VSCode to solve the problem natively: microsoft/vscode#55111 (comment)

It is currently not possible to navigate through the QuickFix (CodeActions) popup. For VIM users this really breaks the workflow. This extension displays quick fixes in a quick open rather than in the menu.

Before

Before

After

After

How to use

You can get the extension here:

Keyboard Quickfix

The command to open the quick fix picker is:

  • keyboard-quickfix.openQuickFix

The quick picker can be traversed with the following commands:

  • workbench.action.quickOpenSelectNext
  • workbench.action.quickOpenSelectPrevious

Below is an example keybindings.json file:

[
  {
    "key": "ctrl+.",
    "command": "keyboard-quickfix.openQuickFix",
    "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly && vim.active"
  },
  {
    "key": "ctrl+k",
    "command": "workbench.action.quickOpenSelectPrevious",
    "when": "inQuickOpen && !editorReadonly && vim.active"
  },
  {
    "key": "ctrl+j",
    "command": "workbench.action.quickOpenSelectNext",
    "when": "inQuickOpen && !editorReadonly && vim.active"
  }
]

Why does this exist?

The quick open popup is a native popup and there for does not support it yet. It is unclear when the support for it is comming. You can follow this issue: microsoft/vscode#55111

Enjoy

Twitter @Pascal_Senn;