Datagrip editor get active text
已计划
In DataGrip when writing a query in query console I can see a highlight around the query I am working on
I want the plugin I am developing to get this text
not all the text from the editor
just the query that is currently highlighted
I tried this but I alway get NULLeditor.selectionModel.selectedText
This works but gives all text in editoreditor.document.text
I am using InteliJ IDEA, Kotlin, Gradle
请先登录再写评论。
Hello Ewenson!
You can process all relevant statements as follows:
The same logic is written here as used to determine the position of the frame.
(!) Please note that there may be more than one statement within the frame. (!)