Answers for "intellij plugin get current selection"

0

intellij plugin get current selection

override fun actionPerformed(e: AnActionEvent) {
	var editor=e.getData(PlatformDataKeys.EDITOR);
	var selectedText= editor?.selectionModel?.getSelectedText();
}
Posted by: Guest on July-13-2021

Browse Popular Code Answers by Language