How to change Material Icon Theme folder association
• 2 min read
Introduction
How to change Material Icon Theme folder association I really love the Material Icon Theme for Visual studio code. It’s very visually appealing and helps me quickly mentally locate whatever I need inside the explorer.
However, not all folder names and types are covered by default. But, they do offer a way to add your own associations with custom icons as well pre-existing icons.
Changing the icon In this example, I’ll be changing the icon for a folder named cypress. Cypress is used for end-to-end testing so I figured I should change the default Icon to something more oriented for testing.
First, let’s go ahead and open up Visual Studio Code and hit CTRL
+ SHIFT
+ p
This should open up possible commands. Type in User Settings.
Upon opening them up, we can see the search bar, search for folder icon.
In Material-icon-theme > Folders: Associations click on “Edit in settings.json”
There should be a section called material-icon-theme.folders.associations
Inside we can start changing the folder associations
I updated it to include cypress with the test folder association.
For default images this can be used as a reference:
https://raw.githubusercontent.com/PKief/vscode-material-icon-theme/main/images/folderIcons.png
Now cypress will show up with the updated icon:
If you see any typos or errors you can edit the article directly on GitHub
Hi, I'm Diego Ballesteros 👋.
Stay on top of the tech industry and grow as a developerwith a curated selection of articles and news alongside personal advice, observations, and insight. 🚀
No spam 🙅♂️. Unsubscribe whenever.
You may also like these articles:
- 2023-06-05T00:41:29.681Z
- 2022-10-25T11:29:26.663Z
- 2022-10-17T14:44:10.229Z
- 2022-10-10T14:02:10.349Z