Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.
Marcel Kloubert edited this page Nov 14, 2021 · 2 revisions

Icons

GUI elements, like buttons or quick picks (item selectors), are able to parse and display icons inside their label texts.

The format of an icon placeholder is: $(ICON-NAME)

The example shows, how to create a button with pencil icon as prefix for its label:

{
    "ego.power-tools": {
        "buttons": [
            {
                "text": "$(pencil)  Open In Notepad",
                "action": {
                    "type": "shell",
                    "command": "\"notepad.exe\" \"${activeFile}\"",
                    "wait": false
                }
            }
        ]
    }
}