Use glob pattern for file associations
See original GitHub issueThis icon set is awesome; thanks for all the hard work so far, it’s fantastic.
Further to the great work you’ve already done, it would be cool if I could set all files within a folder to use a certain icon; e.g:
"material-icon-theme.files.associations": {
"**/reducers/*.js": "redux-reducer"
},
Keep up the good work.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:15
- Comments:7 (3 by maintainers)
Top Results From Across the Web
File globbing - .NET - Microsoft Learn
Learn how to use file globbing in .NET to match various files with the same partial names, extensions, or segments.
Read more >How to make VS Code treat a file extensions as a certain ...
In Visual Studio Code, you can add persistent file associations for language ... To find the proper language ID, use Ctrl + Shift...
Read more >Changing the language mode for a file extension - YouTube
Today's VS Code setting: Files Associations Change the default language mode used for a file based on file extension or file name.
Read more >When exactly would you use ".[^.]*" or ".??*" glob patterns?
One recommendation if you want to match all dot files without duplicates, use both of these together: .[^.] and .??* The first matches...
Read more >How can I deal with file association in different application(not ...
So it's seems to me the applications not using well this file associations or i really don't understand the aim of file associations...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi @JonJamesDesign, thank you for your kind feedback. I really like your idea, but the extensions API of VS Code doesn’t support glob patterns for file icon associations at the moment. There’s already an open issue in the official VS Code repository. Feel free to support it with a 👍
@PKief Looks like this will not be supported by vscode - https://github.com/Microsoft/vscode/issues/12493#issuecomment-1084511097