Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>TokenCount: AI Token Saver & SkimmerNew to Visual Studio Code? Get it now.
TokenCount: AI Token Saver & Skimmer

TokenCount: AI Token Saver & Skimmer

JustinXai Labs

|
1 install
| (0) | Free
The best way to count and save tokens for Cursor, Claude, and ChatGPT. Dehydrate code to save 90%+ tokens. Eliminate comments, compress whitespace, and protect Python indentation — one-click to clipboard.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TokenCount - Save 90% AI Tokens

TokenCount

TokenCount Demo - 94% Token Reduction


🎉 Celebration Mode: Pro Features Unlocked

All Semantic Skim features are currently FREE for a limited time. Join the JustinXai Labs launch celebration and experience 90%+ token reduction.


The Problem

AI coding assistants like Cursor and Claude have limited context windows. Every token counts. But your code is bloated with comments, whitespace, and documentation that matters to humans — not to AI.

The Solution

TokenCount dehydrates your selected code in seconds:

  • Safe Dehydration — Protects Python indentation, preserves JS/TS syntax structure
  • Comment Removal — Strips JSDoc and single-line comments automatically
  • One-click Clipboard — Select code → right-click → Done. Compressed code is in your clipboard.

Live Demo

See the difference TokenCount makes with real code compression:

TokenCount Demo


Features

Feature Description
Semantic Skim Algorithm Advanced token reduction with 90%+ savings
JSDoc Removal Removes all /** ... */ block comments
Comment Strip Removes all // single-line comments
Indentation Safe Preserves leading whitespace (Python-safe)
Line Compression Removes trailing whitespace, filters empty lines
Stats Preview Shows exact token savings percentage

Usage

  1. Select code in your editor
  2. Right-click → TokenGuard: Dehydrate for AI
  3. Paste into Cursor, Claude, or any AI assistant

Your code is now 40-60% smaller with zero semantic loss.

Keyboard Shortcut

Add to your keybindings.json:

{
  "key": "ctrl+shift+d",
  "command": "token-guard.dehydrate"
}

Requirements

  • VS Code 1.85.0 or later

Part of the JustinXai Matrix

Power up your AI workflow with the complete toolset:

Tool Platform Description
TokenCount VSCode AI Code Skimmer - this extension
Cursor Context Clipper Chrome Extension Clip web content directly to Cursor AI

Explore the full ecosystem: github.com/JustinXai


Changelog

1.2.1 - Launch Celebration (Current)

  • 🎉 Celebration Mode: All Semantic Skim features are currently FREE
  • Added JustinXai Labs Matrix integration
  • Enhanced UI with celebration messaging
  • Added JustinXai Labs social links

1.1.0 - Semantic Skim

  • Introduced Semantic Skim algorithm
  • Achieved 90% token reduction on complex codebases
  • Improved Python indentation protection

1.0.0

  • Initial release
  • One-click code dehydration
  • Python/JS/TS safe whitespace handling
  • Clipboard integration

Follow the Journey

Stay updated with JustinXai Labs:

X (Twitter)

👉 https://x.com/norike0718


Made for developers who count tokens.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft