Skip to content

fanis/claude-clipboard-fix

Repository files navigation

Claude Clipboard Fix

A fast, native Windows utility that strips the 2-space prefix from text copied from Claude Code output. Reads the clipboard, fixes it in place, done.

Latest Version: 1.1.1 | See What's New

Claude Code's terminal renderer adds 2-space leading padding to every line. When you select and copy text, that padding comes along. This tool removes it.

Before and after: 2-space prefix removed

Usage

  1. Select and copy text from Claude Code output
  2. Run ccfix.exe (via Everything, hotkey, command line, etc.)
  3. Paste - the clipboard now has clean text

The tool is silent - no window, no output. It just fixes the clipboard and exits.

Requirements

  • Windows 10/11
  • Go 1.21 or later (for building)

Building

go build -o dist/ccfix.exe -ldflags="-s -w" main.go

The -ldflags="-s -w" flags strip debug info to reduce binary size.

Related

Provenance

This tool was authored by Fanis Hatzidakis with assistance from large-language-model tooling (Claude Code). All code was reviewed, tested, and adapted by Fanis.

Licence

Copyright (c) 2026 Fanis Hatzidakis

Licensed under PolyForm Internal Use License 1.0.0

See LICENCE.md

About

A fast Windows utility that strips 2-space prefix from clipboard text copied from Claude Code output

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages