seunlanlege / vscode-action-buttons

VsCode extension for custom status bar buttons
88 stars 24 forks source link
developer developer-tools vscode vscode-extension

VsCode Action Buttons

Add customizable buttons to the status bar to execute actions or tasks in VS Code.

Features

Example

Installation and setup

Config Options

Command Options

Usage

    "actionButtons": {
         "reloadButton": null,
         "loadNpmCommands": false,
         "commands": [
             {
                 "name": "Run Cargo",
                 "singleInstance": true,
                 "color": "#af565c",
                 "command": "cargo run ${file}",
             },
         ]
     }

Config Vars

As seen in the previous example, vars such as ${file} can be used. Below is a list of each of them and what they do.

Release Notes

v1.2.2

Fix clear terminal command on windows #85

v1.1.5

Added support for VSCode API calls Added api option.

v1.1.4

Added support for VSCode predefined variables as ${file} Added cwd option. Added reloadButton option.

v1.1.3

Added loadNpmCommands option.

v1.1.2

v1.1.0

Added Refresh Action Buttons action button

v1.0.0

Changed configuration name from run to actionButton Better support for js projects

v0.0.8

Added singleInstance option.

v0.0.7

Added support for default Colors

v0.0.6

Added support for reading actions from the scripts segment of package.json.

v0.0.3

Better documentation.

v0.0.1

Initial Release