Favorites

Table of Contents

  1. How to Favorite a Task
  2. How to Remove a Task from Favorites
  3. Features
  4. Perfect For
  5. Recent Tasks
    1. Configuration
      1. workspaceTasks.recentTasks.maxItems
      2. workspaceTasks.groups.recentTasks.enabled
  6. Next Steps

Pin your most frequently used tasks for instant access. Favorites appear in a dedicated section at the top of the task tree, making your common operations just one click away.

Workspace-Tasks Sidebar Compound Tasks & Favorites

How to Favorite a Task

  1. Hover over any task in the tree to reveal the action bar
  2. Click the star icon (โ˜†) in the action bar โ€” or right-click the task and select Add to Favorites
  3. The task appears immediately in the Favorites group at the top of the tree
  4. The star icon fills in (โญ) at both the original task location and in the Favorites group

How to Remove a Task from Favorites

  1. Click the filled star (โญ) in the action bar โ€” or right-click the task and select Remove from Favorites
  2. The task is removed from the Favorites group but remains in its original location in the tree

Features

  • Quick Access โ€” All favorites in one place, organized by task type
  • Persistent โ€” Saved automatically across Visual Studio Code sessions
  • Workspace-Specific โ€” Each workspace maintains its own favorites list
  • Visual Indicators โ€” Star icons show in both the favorites section and original location
  • Context Display โ€” Tasks show their workspace folder name in multi-root workspaces
  • Settings Sync โ€” Favorites automatically sync across all your machines when VS Code Settings Sync is enabled

Perfect For

  • Build, test, and deploy tasks you use daily
  • Development scripts you run frequently
  • Tasks from different workspace folders you need regularly

Recent Tasks

As you run tasks, they are tracked in a dedicated Recent Tasks section at the top of the task tree. This lets you quickly re-run the tasks youโ€™ve been working with most recently.

Configuration

workspaceTasks.recentTasks.maxItems

Type: number Default: 20 Minimum: 0

The maximum number of task items to track in the Recent Tasks group. Once the limit is reached, the oldest tasks are dropped from the list. Set to 0 to disable Recent Tasks entirely.

{
  "workspaceTasks.recentTasks.maxItems": 20
}

Recent Tasks - Max Items

workspaceTasks.groups.recentTasks.enabled

Type: boolean Default: false

When enabled, recent tasks will be grouped by task type in the same way as the main task tree.

{
  "workspaceTasks.groups.recentTasks.enabled": true
}

Recent Tasks - Grouping


Next Steps


© 2026 Ryan Conrad. All rights reserved.

This site uses Just the Docs, a documentation theme for Jekyll.