Limit text field completion to a specific set of segments within Intellij Plugin

一世执手 提交于 2020-01-05 04:07:15

问题


I was able to get code completion to work for a text field in my plugin based on the answer here: Text Field with Standard PsiElement Auto Completion in IntelliJ Plugin

But that's only a part of the problem. In my field I need to express plain text plus Java expressions e.g.:

This is plain text and here's a Java expression {myJavaObject.myMethod()} here's more text and a variable {var}

This is a pretty standard concept in Java. I'd like completion and syntax highlighting to only apply within the curly braces. Is this possible? If so how would one go about implementing this?

来源:https://stackoverflow.com/questions/59476930/limit-text-field-completion-to-a-specific-set-of-segments-within-intellij-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!