asv
asv

Reputation: 3792

Custom icon of status bar item in vscode extensions

The documentation https://code.visualstudio.com/docs/extensionAPI/vscode-api says that icon-name can be taken from the octicon, is it possible to insert icon that is not an octicon?

Upvotes: 1

Views: 2584

Answers (2)

sailendra dash
sailendra dash

Reputation: 31

You can add your custom icon. https://glyphter.com/ add your 5 X 5 svg logo here in section A, then Download the font.

in vscode's package.json

"contributes": {
 "icons": {
        "custom-icon-id": {
            "description": "custom descr",
            "default": {
                "fontPath": "./customicon.woff", //woff file
                "fontCharacter": "\\41" //you added svg logo in section A
            }
        }}

Upvotes: 2

alefragnani
alefragnani

Reputation: 3178

No, you can't, at least, not yet.

There is an open issue asking to support more icons, but no Milestone defined.

Upvotes: 2

Related Questions