Preview selected statement before sending to the console

Answered

Hi! I have been working on a REPL console for some time, and I'm able to send a statement to the console, given the position of the cursor.

In the previous case, it's highly likely that the user wants to send the whole statement, so I want something like this menu in SQL to pick which statement should be sent to the console. Unfortunately, I can't find the classes that are doing this.

 


While I'm on it, I can't seem to find a way to increase the font of my console (by default), and CTRL+mouse wheel isn't working, while it does in the rust console, or in the R console (but, I looked at the code for a while, without finding how they did that 🥲 ).

 

Thanks in advance!

0
2 comments

Hi Quentin,

  1. This is not part of the platform API, but you can take a look and get inspiration from: https://github.com/JetBrains/intellij-community/blob/master/platform/lang-impl/src/com/intellij/refactoring/IntroduceTargetChooser.java
  2. It should be handled by Increase/Decrease Font Size editor action. Make sure you have shortcuts set for this action (Settings/Preferences / Keymap: Editor Actions/Increase Font Size, etc.)
1

Nice, still great news, I will check that, thanks!

0

Please sign in to leave a comment.