A feature similar to the Markdown plugin
已回答
I want to do something similar to the "Markdown" plugin. I searched but couldn't find it. My goal is to show a miniature icon of the image, for example, when the image path is given in front of a variable in a *.java or *.py file.
For example, I want the image icon to appear instead of String on the right side of the equation img1="/path/img1.png".
请先登录再写评论。
Hi,
Could you please clarify the existing feature in the Markdown plugin? Please share a screenshot.
This is what markdown plugin does.
I will try to explain what I want with Photoshop.
This is a *.java
If I can do this. When I click on the image icon, I will perform operations with the help of Actions.
Thanks
Hi,
Please check https://plugins.jetbrains.com/docs/intellij/inlay-hints.html#inlay-hints-provider. You will need to create a presentation that draws an image. Please note that this API is replaced with declarative inlay hints and may be deprecated in the future (it is not planned yet). The image URL will still be displayed in the editor. You can consider implementing code folding to fold it into a smaller placeholder: https://plugins.jetbrains.com/docs/intellij/additional-minor-features.html#code-folding.
thanks for the answer. I will try.