How do I customise the Code Editor by showing some additioanl content in the editor
已回答
Hello There, Good Day!..
Am completly new to plugin development & trying to develop a plugin to show some additional info in Code Editor. I could make some good progress involving UI building for dialogs & Code Navigation using PSI. But for the past 1 week for the part involving CodeEditor as described in below bullet points, am kind of stuck having no clue on what exacctly to look for even searching.
Am stuck at
- Showing some fancy Text above a method.(The below image is just for sample)
- Completely Strikeout a method block of code
- Don't allow user to type inside a method
If I could get any sort of beacon light(Hints/tips/resource) for the above bullet points, it would be really really helpful.
Thanks in Advance
请先登录再写评论。
1) https://plugins.jetbrains.com/docs/intellij/inlay-hints.html
2) you can use Annotator to add additional layer of highlighting https://plugins.jetbrains.com/docs/intellij/syntax-highlighting-and-error-highlighting.html#annotator
3) "Don't allow user to type inside a method" what is the use-case?