Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Cut a WhileNew to Visual Studio Code? Get it now.
Cut a While

Cut a While

Horacio Dominguez

|
3 installs
| (0) | Free
Pomodoro timer for VS Code — stay focused, track your flow
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cut a While

Pomodoro for VS Code — stay in flow without leaving the editor.

Visual Studio Marketplace Open VSX

Cut a While in VS Code — timer panel, sidebar, and status bar

A minimal focus timer that lives inside VS Code: status bar countdown, activity-bar tree, and a clean webview panel that follows your editor theme.


Why

External timers break concentration. Cut a While keeps work / break cycles, tasks, and light analytics next to your code — with optional Zen Mode when you need fewer distractions.

Features

  • Pomodoro cycles — work, short break, and long break (defaults 25 / 5 / 15)
  • Status bar — live countdown; click to start or pause
  • Activity Bar — overview (open panel + today’s count). The timer itself is the Timer Panel
  • Timer panel — progress arc, session dots, tasks, stats, and settings
  • Tasks — chips select a task; Start begins the session. The task stays editable while focusing
  • Stats — today / week / totals, 7-day chart, top tasks, project focus time
  • Sounds — six completion themes (bell, digital, nature, zen, soft, classic)
  • Accent color — blue, purple, green, pink, orange, or teal
  • Zen Mode — optional full focus when a work session starts
  • Auto-pause — pause when VS Code loses window focus; prompt to resume
  • Project focus — folder totals in stats
  • Persistent state — timer progress survives window reloads

Install

VS Code Marketplace

Search Cut a While in the Extensions view, or install from the Marketplace listing.

Open VSX (Cursor / VSCodium / Antigravity)

Search Cut a While in Extensions, install by ID horaciodominguez.cut-a-while, or use the Open VSX listing.

GitHub Release (.vsix)

Download cut-a-while-0.1.7.vsix from the latest GitHub Release, then in VS Code: Extensions → … → Install from VSIX…

From source

npm install
npm run build
npm run package

Then install the generated cut-a-while-0.1.7.vsix as above, or press F5 after npm run build to run an Extension Development Host.

Usage

  1. Open Cut a While in the Activity Bar and choose Open Timer Panel. The sidebar shows today’s count; the timer UI is the bottom Timer Panel. Click the status-bar countdown to start or pause.
  2. Pick a task chip or type what you’re working on. A chip only selects the task. Starting a session does not add a task to the list.
  3. Press Start. You can edit the task while the session is running. The same task stays through the break.
  4. When focus ends, the break starts. A short notice appears only if the timer panel is hidden. From the panel you can pause, stop, or start the next focus.

Commands

Command Default shortcut
Cut a While: Start / Pause Timer Status bar click. Assign a key in Keyboard Shortcuts if you want one. Ctrl+Shift+T / Cmd+Shift+T stays Reopen Closed Editor. On a break this pauses; it does not skip the break.
Cut a While: Show Timer Panel —
Cut a While: Reset Cycle —
Cut a While: Show Statistics —

Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P) and type Cut a While.

Settings

Search Cut a While in Settings, or edit settings.json:

Setting Default Description
cut-a-while.workDuration 25 Work session length (minutes)
cut-a-while.breakDuration 5 Short break (minutes)
cut-a-while.longBreakDuration 15 Long break (minutes)
cut-a-while.longBreakInterval 4 Work sessions before a long break
cut-a-while.autoStart true Start next focus after a break (breaks always start)
cut-a-while.autoPause true Pause focus when the window loses focus (breaks keep running)
cut-a-while.sound.enabled true Play sound on cycle complete (Windows/macOS; Linux needs panel visible)
cut-a-while.soundTheme bell bell | digital | nature | zen | soft | classic
cut-a-while.zenMode false Enter Zen Mode on focus start (exits on pause/break)
cut-a-while.statusBarAlignment right left | right
cut-a-while.theme.accent blue Accent for ring, CTA, and UI accents

Most of these are also editable from the in-panel Settings drawer.

Limits

  • The Activity Bar view is an overview (open panel + today). Start, pause, and settings live in the Timer Panel (bottom), the status bar, or via Cut a While: Show Timer Panel.
  • Auto-pause (cut-a-while.autoPause, default on) pauses focus when the window loses focus, then asks once to resume. Breaks keep running.
  • Zen Mode turns on for a running focus session and turns off on pause, break, or stop.
  • On Windows, completion and theme preview use system beeps (one pattern per theme). On macOS, host completion uses one system sound. On Linux, completion sound needs the panel visible.
  • Task chips select a task. The session starts only when you press Start.

Architecture

Extension Host (Node)          Webview (React + Vite)
┌─────────────────────┐        ┌──────────────────────┐
│ TimerManager        │◄──────►│ Timer panel UI       │
│ Storage (globalState│  msgs  │ Settings / Stats /   │
│ Status bar + Tree   │        │ Tasks drawers        │
│ Zen / auto-pause    │        └──────────────────────┘
│ Project focus       │
└─────────────────────┘
  • Host: TypeScript, VS Code Extension API
  • UI: React 19, Tailwind CSS 4, Framer Motion (drawers)
  • Build: tsc → out/extension.js; Vite → out/webview/

Development

Requirements: Node.js 20+, VS Code / Cursor with extension debugging.

npm install
npm run build      # compile extension + webview
npm run dev        # watch both
npm test           # Vitest (timer, storage, commands, host sound, …)
npm run lint
npm run package    # produce .vsix via vsce

Publish to Open VSX (after npm run package):

npm run publish:openvsx -- -p <TOKEN>

Token at open-vsx.org/user-settings/tokens.

Debug: open this folder in VS Code → Run and Debug → Run Extension (or F5). A second window (Extension Development Host) loads the extension.

Tip: after UI changes, rebuild the webview (npm run build:webview or npm run dev) and reload the Extension Development Host.

License

MIT — see LICENSE. Publisher: horaciodominguez.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft