• Stars
    star
    1,676
  • Rank 27,870 (Top 0.6 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Available on the VSCode Marketplace


logo

Material Icon Theme

Get the Material Design icons into your VS Code.

VersionΒ  RatingΒ  InstallsΒ  Downloads


Sponsored by

File icons

file icons

Folder icons

folder icons

Customize file & folder color

You can change the color of the default file and folder icons using the command palette:

custom folder colors

or via user settings:

"material-icon-theme.folders.color": "#ef5350",
"material-icon-theme.files.color": "#42a5f5",

Folder themes

You can change the design of the folder icons using the command palette:

folder themes

or via user settings:

"material-icon-theme.folders.theme": "specific"

Custom icon opacity

You can set a custom opacity for the icons:

"material-icon-theme.opacity": 0.5

Custom icon saturation

If colors do not make you happy you can change the icons to have less saturation making them look grayish or completely grayscale by setting saturation to 0:

"material-icon-theme.saturation": 0.5

You can also achieve no saturation (i.e., grayscale) by setting Toggle Grayscale to ON.

Custom icon associations

You can customize the icon associations directly in the user settings.

File associations

With the *.[extension] pattern you can define custom file icon associations. For example you could define an icon for *.sample and every file that ends with .sample will have the defined icon. However, not all files with the same file extension always have the same icon. For some specific file names there is a special icon. In order to overwrite all the specific file icons as well, two asterisks must be set instead of one, i.e. **.[extension].

If there's no leading * it will be automatically configured as filename and not as file extension.

"material-icon-theme.files.associations": {
    "*.ts": "typescript",
    "**.json": "json",
    "fileName.ts": "angular"
}

Custom SVG icons

It's possible to add custom icons by adding a path to an SVG file which is located relative to the extension's dist folder. However, the restriction applies that the directory in which the custom icons are located must be within the extensions directory of the .vscode folder in the user directory.

For example a custom SVG file called sample.svg can be placed in an icons folder inside of VS Code's extensions folder:

.vscode
 β”— extensions
   β”— icons
     β”— sample.svg

In the settings.json the icon can be associated to a file name or file extension like this:

"material-icon-theme.files.associations": {
    "fileName.ts": "../../icons/sample"
}

Note: The custom file name must be configured in the settings without the file ending .svg as shown in the example above.

Folder associations

The following configuration can customize the folder icons. It is also possible to overwrite existing associations and create nice combinations. For example you could change the folder theme to "classic" and define icons only for the folder names you like.

"material-icon-theme.folders.associations": {
    "customFolderName": "src",
    "sample": "dist"
}

Custom SVG folder icons

Similar to the files, it is also possible to reference your own SVG icons for folder icons. Here it's important to provide two SVG files: one for the folder if it's closed and another one for the opened state. These two files - let's call them "folder-sample.svg" and "folder-sample-open.svg" - have to be placed into a directory which is relative to the extensions dist folder. This directory has to be somewhere inside of the .vscode/extensions folder.

In our example we place them into an icons folder inside of the .vscode/extensions folder:

.vscode
 β”— extensions
   β”— icons
     ┣ folder-sample.svg
     β”— folder-sample-open.svg

In the settings.json the folder icons can be associated to a folder name (e.g. "src") like this:

"material-icon-theme.folders.associations": {
    "src": "../../../../icons/folder-sample"
}

Language associations

With the following configuration you can customize the language icons. It is also possible to overwrite existing associations.

"material-icon-theme.languages.associations": {
    "languageId": "iconName",
    "json": "json"
}

You can see the available icon names in the overview above. See "Known language identifiers" in the VS Code documentation for a list of permitted values for languageId.

Commands

Press Ctrl-Shift-P to open the command palette and type Material Icons.

commands

Command Description
Activate Icon Theme Activate the icon theme.
Change File Color Change the color of the file icons.
Change Folder Color Change the color of the folder icons.
Change Folder Theme Change the design of the folder icons.
Change Opacity Change the opacity of the icons.
Change Saturation Change the saturation value of the icons.
Configure Icon Packs Selects an icon pack that enables additional icons (e.g. for Angular, React, Ngrx).
Toggle Explorer Arrows Show or hide the arrows next to the folder icons.
Restore Default Configuration Reset to the default configuration.
Toggle Grayscale Set icon saturation to 0 (grayscale), or 1 (color).

Icon sources

Contributors

Contributors

Would you like to contribute?

Take a look at the contribution guidelines and open a new issue or pull request on GitHub.

Related extensions

More Repositories

1

angular-cli-electron

Angular CLI + Electron
HTML
46
star
2

angular-global-error-handling

Created with StackBlitz ⚑️
TypeScript
30
star
3

vscode-material-product-icons

Product Icon Theme with Material Icons for VS Code
TypeScript
29
star
4

vscode-markdown-checkbox

Get it from the marketplace:
TypeScript
29
star
5

latex-thesis-template

LaTeX - Template for a bachelor/master thesis
TeX
18
star
6

angular-events-chatbot

Chatbot that searches for events in your environment.
TypeScript
9
star
7

vscode-typescript-debugging

Medium article:
TypeScript
7
star
8

angular-material-starter

Angular Material Starter
TypeScript
7
star
9

material-color-converter

Convert any CSS color to a similar color of the Material Design
TypeScript
5
star
10

nodejs-worker-threads

Demo for NodeJS WorkerThreads
TypeScript
4
star
11

Snake

Snake game with JavaScript
JavaScript
4
star
12

vscode-angular-component-extractor

VS Code Extension to extract HTML Code into Angular components
TypeScript
3
star
13

checkbox-snake

Snake game with HTML checkboxes
JavaScript
2
star
14

pkief.github.io

Personal Website
TypeScript
2
star
15

angular-electron-starter

An angular starter kit based on electron.
TypeScript
2
star
16

angular-webpack-starter

Basic Angular Webpack Setup
TypeScript
2
star
17

svg-color-linter

Linting tool to check if SVG files use only colors of a given color palette
TypeScript
2
star
18

pkief

My personal space.
1
star
19

svelte-snake

A snake game written in Svelte and TypeScript
TypeScript
1
star
20

angular-reactive-state-slides

Presentation of a reactive state concept in Angular
JavaScript
1
star
21

proxy-setup-cli

A command line interface to control the proxy settings of various development tools.
TypeScript
1
star
22

angular-microfrontends-demo

Demonstration of a microfrontend composition with Angular
TypeScript
1
star
23

express-basic-auth-example

Express basic authentication example
TypeScript
1
star
24

react-todo-list

React sample project
JavaScript
1
star
25

angular-reactive-state

Reactive state management for Angular
TypeScript
1
star
26

vscode-copy-branch-name

VS Code extension to copy the current branch name into the clipboard
TypeScript
1
star