AnActionEvent can get cursor in json file
已回答
Is there any way to tell if my cursor is focused on the key in dependencies, but not elsewhere.
I am making a menu enable control. I want the user to focus on the correct position before operating this menu function. The control I currently make is just packge.json, which is too rough.
请先登录再写评论。
You can use com.intellij.openapi.actionSystem.CommonDataKeys#PSI_ELEMENT to obtain current PsiElement.