Define your tasks and then execute them at the click of a button in your taskbar.
Extension Settings
This extension contributes the following setting:
VsCodeTaskButtons.showCounter
: Boolean to show/hide the Task counter. Default true.
VsCodeTaskButtons.tasks
: Array used to define tasks. See below for format.
For each button you define the following object:
{
"label": "Label that appears in the taskbar",
"alignment": "The alignment of the button in the taskbar. Options: left and right. Default: left",
"task": "The vscode task to execute. Must be absent when using 'tasks'",
"tasks": "List of tasks to show in the Quick Pick Menu",
"tooltip": "Optional tooltip to show when hovering over the button (defaults to task name)",
"description": "A description of the task when viewing the task list in the Quick Pick Menu"
}
Icons
You can add icons to your buttons using the following syntax in the text field:
$(icon-name)
A list of all available icon names (sourced from the VSCode theme) is here
Icons are not supported in the tooltip text.
Emoji
You can add Emoji's to the button text and tooltip text.
Just type an emoji as you would any normal character opening your "emoji keyboard" (Windows MacOS)
You can also copy them from Emojipedia
Example configuration
The following settings.json
example gives you four buttons using icons and emojis with one of the buttons opening up two more commands in the quick pick menu. It also has the task counter enabled.
{
"VsCodeTaskButtons.showCounter": true,
"VsCodeTaskButtons.tasks": [
{
"label": "$(notebook-move-down) Build",
"task": "build",
"tooltip": "🛠️ Start the \"build\" task"
},
{
"label": "$(search-refresh) Re-Build",
"task": "re-build",
"tooltip": "🧹🛠️ Start the \"re-build\" task"
},
{
"label": "$(notebook-delete-cell) Clean build",
"task": "clean",
"tooltip": "🧹 Start a \"clean\" task"
},
{
"label": "$(server-process) Server"
"tasks": [
{
"label": "😀 Start Dev Server",
"task": "start-dev",
"description": "$(debug-start) Boots up the development server"
},
{
"label": "🛑 Stop Dev Server",
"task": "stop-dev",
"description": "$(debug-pause) Shuts down the development server"
}
]
}
]
}
Issues / Feature Requests
https://github.com/spencerwmiles/vscode-task-buttons/issues
Release Notes
1.1.3
Full Changelog: https://github.com/spencerwmiles/vscode-task-buttons/compare/v1.1.2...v.1.1.3
1.1.2
- Under the hood repo cleanup
1.1.1
- Updated dependencies
- Fixed bad JSON in package.json
1.1.0
- Rewrite of the extension ot use TypeScript (Shoutout to Fabje for the support)
- Added support for alignment of buttons via "alignment property" (default: left - options: left, right)
- Added MIT license (Thanks gameguy682)
- Added Quick Pick Menu
1.0.4
- Fixed issue with task counter not updating (closed issue #12) PR
- Shoutout to Fabje for the PR
1.0.3
- Task Buttons now include the ability to show a tooltip on hover via an added
tooltip
property.
- Thanks to @oleksiikutuzov for the suggestion.
1.0.2
- Task Buttons will reload on configuration change. Reload was previously required.
1.0.1
1.0.0
- Initial release of Task Buttons