Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories IDEs
Created by Guest
Created on Sep 30, 2021

Use Ctr-Enter to execute instuction where the cursor is.

Currently, is kind of tedius to execute a targeted line. Other editors accept Ctl-Enter to execute the line, which is very convenient.
  • Guest
    Nov 23, 2021
    The currently assigned hotkey is part of the tool tip as shown on the attached screenshot. I think that would help if the button on the toolbar would have a shortcut assigned by default or if those other two buttons would be displayed in place of the current "play" button. Having both buttons on the toolbar would be more educational / self explanatory.
  • Guest
    Nov 23, 2021
    Thanks for clarifying, looks like its just hard to find this VSCode option for new comers.
  • Guest
    Nov 23, 2021
    Admittedly, we currently don't have a shortcut to run the current line. We do, however, have shortcuts to run the whole playground (Ctrl + Alt + R on Win/Linux and Cmd + Option + R on macOS) or the current selection (Ctrl + Alt + R on Win/Linux and Cmd + Option + S on macOS). Shortcuts are also customizable from VS Code's global shortcuts config screen. Just search for MongoDB.
  • Guest
    Nov 17, 2021
    Also, 2 birds with one stone, there can be another key combination [ Ctrl + \ ] for executing the query with separate results window. Both of these should perform batch execution when there is a selection in the editor marking the batch to execute. Otherwise, just execute the statement / query under the cursor.