Loading Code to Play
Code to Play logo

Code to Play: earn playtime by writing code

Write real code in VS Code and earn plays for in-editor games. Stay focused, ship features, then take a break without leaving your files.

Install ExtensionExplore Pro

0+

Installs

0+

Languages

Works in your favorite editor

Visual Studio CodeGitHub CodespacesVSCodiumGitpodEclipse TheiaEclipse CheCursorAntigravityWindsurfTraePositron
PositronTraeWindsurfAntigravityCursorEclipse CheEclipse TheiaGitpodVSCodiumGitHub CodespacesVisual Studio Code

Why use it?

Coding is intense. Rest is part of the work.

Breaks shouldn't break your workflow. They should be earned.

  • Built for long sessions

    When you have been in the editor for hours, a short play is the break you actually take. You earned it by writing code, not by switching apps.

  • Meaningful lines only

    Comments, blanks, and brace-only lines do not count. The meter moves when you write real code, so progress toward your next plays reflects work you actually did.

  • A finish line in the status bar

    1000 lines unlock 5 plays, shared across every game. Seeing the count tick up is a reason to keep going without leaving your flow.

  • Rest without the guilt

    Burnout sneaks in when every pause feels like slacking. Here the break is the reward for shipping lines, so you can step away and come back to the same file.

  • Skip the phone spiral

    A quick check on your phone is never quick. Games live in the editor, so the break stays a break instead of a twenty-minute scroll.

  • Play without leaving your IDE

    Games open as a webview. Your tabs stay put, your context stays intact, and you return to the same cursor.

Features

Everything you need to play while you work

A complete gamification toolkit that lives in your IDE.

  • 01

    Meaningful line tracking
    Comments, blanks, and brace-only lines do not count. Only real code moves the meter toward your next plays.
    JavaScriptTypeScriptPythonC++RustGoJavaRuby…
  • 02

    Progressive unlock
    1000 meaningful lines unlock 5 plays, shared across every game. The status bar shows progress while you work, then remaining plays once you unlock.
    450/1000 lineslocked
  • 03

    Local high scores
    High scores are split per difficulty. They live in the editor, so you can reset them anytime — nothing leaves your machine.
    • Easy11
    • Medium7
    • Hard3

    Stored locally · reset anytime

Pricing

Earn plays, or add more when you need them

The loop stays free: write code, unlock plays, take a break. Pro starts with a 5-day free trial. Play spaces are optional when you want extra.

Free
Earn plays by writing meaningful code. Install once, no account.

$0

  • Games: Whack-a-Bug, Debug Snake, and CI Bird
  • Difficulty levels on every free game
  • 1000 meaningful lines unlock 5 plays, shared across games
  • Local high scores and stats — no telemetry
  • Works in supported editors

Subscription · 5-day free trial

Pro
Everything in Free, extra play spaces, Call Stack, Merge Conflict, and Kernel Panic. Start with a 5-day free trial.

$6$4/month

  • Everything in Free
  • +2 play spaces
  • Call Stack, Merge Conflict, and Kernel Panic
  • 5-day free trial — cancel before it ends and you are not charged

Then $4/month or yearly. Cancel during the trial and you are not charged.

Add-on

Play spaces
Buy extra play spaces when you have already earned your loop and still want a short break.

$1for 1 space

$1 each

1

Buy 1 to 10 play spaces at a time. After a purchase, the next buy is locked for 5 hours so you stay concentrated on writing code.

Full details on the pricing page.

FAQ

Questions before you install

What it is, why it helps, and what Pro adds — then write code until the status bar unlocks plays.

Code to Play is a VS Code extension that unlocks in-editor mini-games as you write real code. Meaningful lines count toward unlocks — comments, blanks, and brace-only lines do not. By default, 1000 lines unlock 5 plays, shared across Whack-a-Bug, Debug Snake, and CI Bird. High scores and stats stay on your machine.