As a User, I want to change my editor's database connection from the keyboard so that I can establish a connection before running a script, and/or change my connection without leaving the keyboard.
This feature would be similar to the workbench.action.editor.changeLanguageMode property. There are already "Connect" and "Change Connection" buttons in the SQL Query editor, ideally the property would extend use those functions through the following scenarios:
For simply changing database within the same server I'd love to have a command in the palette / a keyboard shortcut to just open up the Change database dropdown menu so I can select a different database and continue my work instead of mucking about with the connection window just to switch to a different db within the same server.
Obviously, switching to a different server is still a desirable action from the keyboard / command palette, but if you're just switching within the same server it's still a time waster.
For anyone who comes across this before it's completed in Azure Data Studio and finds themselves regularly hitting ctrl+U, here's an extension for quickly changing the database of a query editor connection.
Most helpful comment
For simply changing database within the same server I'd love to have a
commandin the palette / a keyboard shortcut to just open up theChange databasedropdown menu so I can select a different database and continue my work instead of mucking about with the connection window just to switch to a different db within the same server.Obviously, switching to a different server is still a desirable action from the keyboard / command palette, but if you're just switching within the same server it's still a time waster.