Insert console.log statements for the selected variable, prefixed with 🐔 Pepe el pollo and the value. Comment, uncomment or delete all Pepe logs in one shot.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A Turbo Console Log–style helper. Select a variable, hit the shortcut, and Pepe inserts a console.log on the next line — prefixed with 🐔 Pepe el pollo plus the variable's value.
const user = getUser();
console.log("🐔 Pepe el pollo ~ app.js:L2 ~ user:", user);
Commands & shortcuts
Action
Shortcut (Win/Linux)
Shortcut (macOS)
Insert log for selection
Ctrl+Alt+L
Cmd+Alt+L
Comment all Pepe logs
Ctrl+Alt+Shift+C
Cmd+Alt+Shift+C
Uncomment all Pepe logs
Ctrl+Alt+Shift+U
Cmd+Alt+Shift+U
Delete all Pepe logs
Ctrl+Alt+Shift+D
Cmd+Alt+Shift+D
Run & show outputs (ghost text)
Ctrl+Alt+Enter
Cmd+Alt+Enter
Ghost-text outputs
Run Pepe Logs: Run & show outputs (Ctrl/Cmd+Alt+Enter) and Pepe runs the current file with Node, captures the console output and prints each logged value to the right of its line as ghost text:
const total = 2 + 3;
console.log("🐔 Pepe el pollo ~ math.js:L2 ~ total:", total); 🐔 ⮕ 5
How it works and its limits — be aware:
VS Code does not execute code on its own, so Pepe actually runs the file with Node and maps the printed values back to each line using the Lnn token embedded in the log label. Keep pepePollo.includeLineNum enabled.
Works only for files that run standalone with Node (.js, .mjs, .cjs, and .ts via Node's experimental type stripping). It does not work for browser/React code that needs a bundler, nor for files that require special build steps, args, or env.
The ghost text clears automatically as soon as you edit the file (it would be stale).
Configure the Node binary with pepePollo.nodePath and extra flags with pepePollo.runArgs.
Place the cursor on a variable (or select it) and press the insert shortcut. Multiple cursors/selections are supported. The comment/uncomment/delete commands act on every log that contains the Pepe el pollo marker in the current file.