Task BlocksTask Blocks finds task comments directly in your code, shows unfinished work in the sidebar and Problems panel, and works across common programming languages. Write tasks in the editorPython, YAML, shell, and similar files:
JavaScript, TypeScript, Java, C#, and similar files:
Other supported styles include:
Recognized markers are Pending tasks also appear in VS Code's Problems panel. IDs, due dates, and dashboardNew tasks created with the Add Code Task command receive a stable ID automatically. Existing tasks can use Assign Stable Task ID:
Supported due-date formats are The Dashboard view summarizes Pending, Overdue, Working, Paused, Completed Today, and total tracked working time. GitHub identity and ownershipUse Task Blocks: Sign In with GitHub or click the GitHub account row in the Dashboard. Sign-in is optional and handled by VS Code's GitHub authentication provider. Task Blocks stores only the account ID and label, never the access token. Tasks created while connected are annotated automatically:
The owner appears in the sidebar. Disconnect GitHub disconnects the account from Task Blocks without signing GitHub out of VS Code. DatesThe calendar action opens a visual date-and-time picker for the due date. When a task first changes to Working, its start date and time are stamped automatically in workspace storage. Hover over the sidebar task to see Created, Started, Completed, and tracked working time. The extension activates automatically after VS Code starts, so task highlighting, locking, diagnostics, and the dashboard work before the sidebar icon is opened. The line is highlighted in the editor and appears under Pending Code Tasks. Click the sidebar item to jump to the exact line. Completed markers appear in a separate Done Code Tasks view directly below the pending list. Both views remain available even when empty; only the warning indicator disappears when no work is pending. Clickable actions also appear directly above every task line. Depending on the current state, they show Start, Pause, Resume, Done, or Reopen. Status markers
Add priority and tags with
Recognized priorities are The extension records when a task was created, started, paused, reopened, and completed. Hover over a sidebar task to see its timestamps and accumulated working time. Timing data stays in VS Code workspace storage and does not modify the source comment. Use the play, pause, resume, and check buttons in the sidebar. The extension edits the marker in the source file automatically. When every task is done, the warning in the status bar disappears. Use the reopen button in the Done view to move a task back to Pending. Task blocksStart a task block with a named task and close it by typing
Adding the end marker automatically completes the task. The completed block is shaded and protected according to the Task Blocks: Lock Mode setting. Use Reopen in the editor or Done sidebar to remove the end marker and unlock the block. Completed blocks provide native editor folding and collapse automatically once when opened or completed. Use the gutter folding arrow or Fold/Unfold action to inspect or collapse a locked block. Expanding a block does not unlock it; editing requires Reopen. Lock modes:
Completed tasks are grouped by filename in the Done Code Tasks view. Add from VS CodeOpen a file, place the cursor where the comment should be inserted, and run Task Blocks: Add Code Task from the Command Palette or use the + button in the sidebar. The extension scans common source and text file types in the current workspace. It does not use the network. Privacy, support, and security |