PascalSenn / keyboard-quickfix

Fully manage quick fix by keyboard
31 stars 6 forks source link

Important

There is movement on VSCode to solve the problem natively: https://github.com/microsoft/vscode/issues/55111#issuecomment-1197426941

keyboard-quickfix

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:

The quick picker can be traversed with the following commands:

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: https://github.com/microsoft/vscode/issues/55111

Enjoy

Twitter @Pascal_Senn;