Pick any pixel on your Mac and insert it at the cursor, already written as code.
This extension works with Pipit Color, the color picker for macOS.
Commands
Command
What it does
Pipit Color: Pick Color (⌃⌘C, status bar, editor right-click)
Opens Pipit Color's magnifier; the color you click is inserted in the format for this language
Pipit Color: Pick Color As…
Choose any of Pipit Color's formats first, including json with every format
Pipit Color: Insert Last Color
Inserts the color you picked most recently in Pipit Color
Pipit Color: Insert Favorite Color…
Choose from your Pipit Color favorites
Pipit Color: Insert Palette Color…
Choose a palette, then a color
Pipit Color: Insert Whole Palette…
Inserts every color of a palette, one per line
With several cursors or selections, the color replaces each of them.
Formats
The format follows the file's language: CSS hex for CSS and web files, SwiftUI for Swift,
Flutter for Dart, Jetpack Compose for Kotlin, and so on. Change the rules in
pipit.formatByLanguage, or set pipit.defaultFormat. When nothing matches, Pipit Color's own current
format is used. Pick Color As… lists every format ID.
Requirements
macOS and the Pipit Color app, with its free trial, a subscription or the lifetime purchase active.
The first time, VS Code may ask whether to let Pipit Color open the extension's link. Allow it.
Works in remote windows (SSH, containers): the extension runs on your Mac, where Pipit Color is.
How it works
The extension opens pipit://x-callback-url/… links with an x-success address pointing back to
VS Code (vscode://alfancodes.pipit/callback). Pipit Color answers through that address. No network, no
background process.