Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard shortcut to execute commands #1210

Closed
mrbing47 opened this issue Aug 31, 2023 · 1 comment
Closed

Keyboard shortcut to execute commands #1210

mrbing47 opened this issue Aug 31, 2023 · 1 comment
Labels
feature request New issue opened using "Feature request" template

Comments

@mrbing47
Copy link

As VS Code is a keyboard extension IDE, it breaks my flow when I when to grab my mouse to select "Run the command on active connection".

It would be a nice feature to add keyboard shortcut (like CTRL + ENTER) to run the query there my cursor is currently at for the sake of convenience.

@mrbing47 mrbing47 added the feature request New issue opened using "Feature request" template label Aug 31, 2023
@gjsjohnmurray
Copy link
Collaborator

Some keyboard shortcuts are already added by the extension. Search for sqltools in the Keyboard Shortcuts editor to see them.

You could add shortcuts of your own to run other commands for which the above search doesn't show a default keybinding. For example, the command SQLTools Connection: Run Current Query would do what I think you want.

Alternatively, bind Show CodeLens Commands For Current Line to a keyboard shortcut, then use it to access any CodeLens from the keyboard. But be aware that VS Code currently has a bug that means you will have to press Enter twice to trigger the selected CodeLens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New issue opened using "Feature request" template
Projects
None yet
Development

No branches or pull requests

2 participants