aioutecism / amVim-for-VSCode

The Vim mode for Visual Studio Code(vscode) that works as expected.
https://marketplace.visualstudio.com/items/auiworks.amvim
456 stars 42 forks source link

Cycle through autocomplete suggestions without arrows #248

Open igorlakic opened 5 years ago

igorlakic commented 5 years ago

It would be really nice to be able to cycle through the autocomplete suggestions without using the arrow keys. Maybe using Ctrl+N/Ctrl+P and/or Ctrl+J/Ctrl+K.

The same thing was successfully implemented in the Vim plugin (see here)

abhagsain commented 3 years ago

@igorlakic I'm using these keybinding settings. Put this in your keybindings.json

 {
    "key": "alt+j",
    "command": "workbench.action.quickOpenNavigateNext"
  },
  {
    "key": "alt+k",
    "command": "workbench.action.quickOpenNavigatePrevious"
  },
  {
    "key": "alt+j",

    "command": "selectNextSuggestion",

    "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  },

  {
    "key": "alt+k",

    "command": "selectPrevSuggestion",

    "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  }