Can Visual Studio Code `quick fix` interact with keyboard?
Asked Answered
C

1

10

I am using VS Code with the excellent vscodevim extension. When I navigate to a code that has a Quick Action available I can ctrl + . to activate the drop down context menu.

Is there a way to select toggle through the list of available items using the keyboard - other then the arrows keys. As a point of information, within Visual Studio it is possible using tab, this does not work in VS Code.


Why? 'cause I love my MS ARC keyboard but I hate the rocker arrow keys.

Choral answered 12/5, 2017 at 13:22 Comment(1)
Relevant VS Code issue: github.com/microsoft/vscode/issues/55111Poetics
C
1

This is a known issue for linux users using vscode with advanced shortcuts like vim extension in your case, for some reason quick fix contextual menu is unattached from vscode shortcuts which makes shortcuts not work. A really easy workaround to use with a graphical interface is HotKey. HotKey > https://github.com/autokey/autokey for Linux and create your own shortcut. How to Use HotKey

Caretaker answered 27/3, 2021 at 20:18 Comment(2)
I guess I should update this question at some point ... the Arc keyboard died and I've switched to the neovim plugin so I could port over my vimrc. My current setup requires a vscode solution as I regularly switch between windows, wsl2 and linux . The problem still exists, is is possible to use autokey to 'tab' through inteliisense options that are determined at runtime?Choral
@Choral Yes, you can since it emulates any key from your keyboard. For example to avoid moving my left hand out of "home row" from the keyboard I used alt+f/e/d/s to simulate arrow keys, which you can navigate anywhere in vs code. BTW you can create a more advanced and customized extension or shortcuts to your keyboard. Even add an exception to work on specifics application, as I did to only work mine on vs code!Caretaker

© 2022 - 2024 — McMap. All rights reserved.