Xiarui Xr
- Total activity 28
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 6
- Subscriptions 11
-
Edited How to implement auto format code on type?
AnsweredI like it when I wrote java code Intellij IDEA provide some auto reformat, for example after I type colon in a swich-case statement, idea will reformat the line with correct indent: I want to impl... -
Edited How to manually download ideaIC sdk in gradle build task?
AnsweredUnfortunately, since I have a very slow network, when I build an intellij-plugin for the first time, it takes me hours to download the ideaIC sdk (e.g. in following picture, the ideaIC-212.3116-EAP... -
Created How to set the presentation of a reference?
AnsweredI implemented "go to declaration" by extends PsiReferenceBase and implements PsiPolyVariantReference, according to this: https://plugins.jetbrains.com/docs/intellij/references-and-resolve.html When... -
Edited auto dedent the closing bracket after press ENTER key
AnsweredI'm working with my custom language plugin, and it's an **indent-based** language. I want to save time when typing indent/dedent, so I've implemented my `BraceMatcher` and `LineIndentProvider`. It'... -
Edited How to walk PsiDirectory recursively using provided api
AnsweredIn my custom language(named KCL), if a PsiDirectory contains KCL files recursively, then it can be a KCL package. So I check if a PsiDirectory is a KCL package by doing this: public static boolean ... -
Edited How to save memory changes to disk, avoiding "File Cache Conflict"
AnsweredI'm developing a custom language plugin, and I use a separate command line program to "format a single file". To do so, I add a "format code" action in editor pop menu, and then in the action's act...