My JavaScript file icons changed somehow. I believe I accidently clicked on some functionality. Could you please tell me what made the icon changed? I posted the screenshot of it below.
1. Does it affect just one file (with specific name) or ALL .js files or perhaps all files named index.js.
2. Focus that file in the Project View panel and invoke "View | Quick Documentation" on it (usually Ctrl+Q on Windows).
Post a screenshot of what it shows.
The thing is: you are using some custom theme (Material UI Theme I guess) and that is not a standard icon (I personally have never such it before; but then, I do not use Material UI Theme or like or custom icons plugins).
I just notice it is only showing this icon on index.js, so probably it's material icon for index.js. When I changed the file name to something.js, it starts showing normal .js icon again. Although I remember even index.js was showing the regular icon earlier. That's why I was thinking I pressed some wrong button. Anyway thank you for your help
I disabled all the plugins and only left the material theme, it still shows the icon I posted on the first comment. Not sure from where it is coming if it's not even part of material icon package. I am reinstalling material icons.
Edit: It is still here even after reinstalling material icons. Maybe I should reset the IDE.
Hi there,
1. Does it affect just one file (with specific name) or ALL .js files or perhaps all files named index.js.
2. Focus that file in the Project View panel and invoke "View | Quick Documentation" on it (usually Ctrl+Q on Windows).
Post a screenshot of what it shows.
The thing is: you are using some custom theme (Material UI Theme I guess) and that is not a standard icon (I personally have never such it before; but then, I do not use Material UI Theme or like or custom icons plugins).
I just notice it is only showing this icon on index.js, so probably it's material icon for index.js. When I changed the file name to something.js, it starts showing normal .js icon again. Although I remember even index.js was showing the regular icon earlier. That's why I was thinking I pressed some wrong button. Anyway thank you for your help
TBH -- rather unlikely.
Anyway: does everything else works fine inside the file (as it does in "something.js")?
Yes it works fine. I don't even see this icon in the material icon package
https://plugins.jetbrains.com/plugin/10044-atom-material-icons
You may disable all such plugins, restart IDE and see what it will show then (using default/bundled icons).
It's up to you (if everything works...)
With default icons it show this .js icon.
I disabled all the plugins and only left the material theme, it still shows the icon I posted on the first comment. Not sure from where it is coming if it's not even part of material icon package. I am reinstalling material icons.
Edit: It is still here even after reinstalling material icons. Maybe I should reset the IDE.
The above is the default icon for JavaScript files as far as I'm concerned.
Sure. Try that. It's "File | Manage IDE Settings...". Make a back up of IDE settings first (just in case)
Materia Theme UI plugin uses name patterns to assign icons to files and folders; it must have a special icon for index...
I reset the IDE and installed just the material theme and icons and this icon is still visible. So, I am sure that is part of the material icons.