Is it possible to change icon of file in Project view?

Hi,
subj.
For example, i have a virtual file, with FileType A. How to change file's type icon to my own?

Thanks!

5 comments

I don't think you can do that. What you can do is create a new file type and associate an icon to it.

If you need that functionality you should probably create an issue in JIRA.

0

The target - is change icon of existing file type and only for several VirtualFiles, not for all.
I know, that i can get access to ProjectView via OpenAPI, and somewhere the way to change icon. For example, Read Only markers do that.

0

if you're using Demetra, you can use IconProvider to override any icon

0

For Virtual File you can use com.intellij.ide.FileIconProvider as well

0

Please sign in to leave a comment.