Giter VIP home page Giter VIP logo

vscode-material-icon-theme's Introduction


logo

Material Icon Theme

Get the Material Design icons into your VS Code.

Version  Rating  Installs  Downloads

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 (User Settings only!) 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 (User Settings only!) 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

vscode-material-icon-theme's People

Contributors

adrieankhisbe avatar bart-krakowski avatar deckstar avatar dependabot[bot] avatar dudeofawesome avatar entrywayaudibly avatar hacknug avatar helmesvs avatar hjorslev avatar hughlilly avatar jamiehaywood avatar lffg avatar lukaspolak avatar luketimewalker avatar melmass avatar noftaly avatar ntnyq avatar patrik-csak avatar pkief avatar prazdevs avatar repiteo avatar saisuryakat avatar samcx avatar shivapoudel avatar stefanobartoletti avatar valtlai avatar wopian avatar yardenshoham avatar zorono avatar zweimach avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-material-icon-theme's Issues

Full support for typescript extensions

First of all, amazing work!!

I would like to add icons for custom typescript files such as gulpfile.ts, karma.conf.ts, .npmrc, .yarnrc, protractor.conf.ts.

I already made changes in the vscode extensions folders and would like to contribute back.

[Request] Better support on Latex (cls, sty) and add support to Mathematica

I type Latex in VSCode and would be great to distinguish those math type files

File Extension Description
.nb Wolfram Notebook
.wl Wolfram Language Package ( newer, replaces .m package, .m used by MATLAB )
.wls Wolfram Language Script

Also you could add your current latex icon to

File Extension Description
.cls Latex document class
.sty Latex package

Regards, José

No Puppet icon shown

After updating to version 2.0.0 I noticed that the Puppet icon wan't shown.

I checked the extension code and I noticed that in out/src/material-icons.json the section with
the Puppet file definition was missing. I added:

    "_file_puppet": {
      "iconPath": "./../../icons/puppet.svg"
    },

and then it worked.

Custom icons

Hi PKief,
Is it possible for me to edit the json with my own icons?
.bowerrc
.nvmrc
etc

Nice theme by the way!!

Add assembly icon

vscode-icons uses this for their icon

I'd suggest something similar to the XML logo with 01/10. Colour of icon would be brown (#795548)

Extensions

  • [.asm, .a51, .inc, .nasm] Assembly
  • [.s, .ms] Unix Assembly
  • '.agc' Apollo Guidance Computer

Request: Elephant Icon for PHP

All the languages have their associated icon, but it would be great to have an elephant icon for PHP instead of the current tag.

A way to identify symlinks (folders, files)

It will be really valuable to have support for showing symlinked content, i.e. some icon overlays if that's technically feasible.

Here's an example of how symlinked folders look within Atom tree view:

screen shot 2017-02-06 at 11 05 25

Folder icons is not visible

I change Toggle Folder Icons to On, but the icons in the folder is not visible.

Have a problem or i not get set this icons in folder?

foldericons

[Opinion] Folder icon color should be more subtle

Personally i find the bright blue of the folder icon to be distracting. Its hard to scan through a list of open files when all the blue icons get lost in an ocean of blue folder icons. I'd propose to make them a not too bright shade of grey.

Request: Laravel Icon

Laravel is a great PHP framework, and though the majority of the files could just use the PHP icon it would be great to have a Laravel icon for at least blade templates (example.blade.php), and if detectable for Laravel PHP files as well.

Handlebars icon .hbs

Hi, would be great to have a handlebars icon. Almost every editor has this icon.

Its website
http://handlebarsjs.com/

Maybe something with "hbs" letters or an orange mustache like de logo.
The extension is .hbs

Thanks ;)

Can add a .rs icon?

The .rs is rust-lang's source code file suffix,It's an excellent programming language!

By the way thank you for developing this theme!

add icon for .dart files

I'm currently using Dart and Flutter to do some dev work and I noticed that there isn't an icon for *.dart files yet. Is this something that could be added? Do you need me to do anything for this issue?

Puppet file icon

I would like the Puppet icon for puppet files. The extensions would be .pp

Icon in png attached.

p-icon-amber-sm

Icon for .jsx files

It would be nice to have an icon for .jsx files. A blue square with jsx in it would go nicely with the current .js icon.

livescript file icon

may i ask for adding the Livescript icon for livescript files which has a .ls extension.
icon in png attached.
livescript-sticker 375x360

Detect JavaScript test files ending in _test.js

The extension only detect a file as a JavaScript test file if it ends in .test.js or .test.ts, is there any chance to make it detect files ending in _test.js as well?

My rationale for this is I like to name test files as feature_test.js instead of feature.test.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.