Turn the active VSCode editor into a stealth Pac-Man playground
把当前 VSCode 编辑器变成摸鱼吃豆人

English · 中文
FishCN Pacman turns the currently-open code file into a Pac-Man maze. Non-whitespace characters are pellets, ghosts chase you across the visible code range. One keystroke hides the game and restores the original code instantly — your boss sees code, you see a chomp.
- 🎮 Pac-Man inside the editor — the visible code IS the map
- 👻 Smart ghosts — chase you with Manhattan-distance pathfinding
- ❤️ 3 lives + score / remaining / combo tracker in the status bar
- ⌨ Single-key stealth toggle — instantly hide game and restore code
- 💾 Auto-restore on save — pressing Ctrl+S during play silently rebuilds the code first; no data loss
- 🎯 Visible range only — only what's on screen becomes the map, big files stay snappy
- 🔄 Resume after hide — Ctrl+Alt+P toggles, same run continues
- Open any code file in VSCode
- Press Ctrl+Alt+P (
Cmd+Alt+P on macOS) to start
- Use Alt+↑ ↓ ← → to move
- Eat all non-whitespace characters in the visible range, avoid
M and W ghosts
- Press Ctrl+Alt+P again to hide (code restored instantly)
- Press Esc to fully exit
| Key |
Action |
Ctrl+Alt+P (Cmd+Alt+P Mac) |
Start / Hide / Resume |
Alt+↑ ↓ ← → |
Move player |
Esc |
Exit and restore code |
Code Pacman 12/85 Lives:3 Ghosts:2 CHOMP x4 Alt+Arrows move Ctrl+Alt+P hide Esc exit
- Save protection — saving while the game is visible auto-rebuilds the original code first, so file content on disk is always the real code
- External edit detection — if another extension/agent modifies the file during play, the game gracefully aborts
- Editor restore — exiting restores the exact selections you had
| Command |
Description |
FishCN Pacman: Toggle / Start |
Start, hide, or resume |
FishCN Pacman: Exit |
Fully exit and restore |
FishCN Pacman: Move Up/Down/Left/Right |
Movement (also bound to Alt+arrow) |
- Works best on files with 100-500 visible lines of dense code
- Switching tabs auto-hides the game safely
- Don't manually edit during play — the game will reset the map
- The map is the visible range at start time; scrolling after start doesn't extend the map
- Ghost AI is greedy Manhattan — they prefer straight lines
- Cannot play in non-text editors (notebooks, settings UI, etc.)
FishCN Pacman 把当前打开的代码文件变成吃豆人迷宫。代码里的非空白字符 = 豆子,怪物在可见代码范围里追你。一个快捷键瞬间隐藏画面 + 还原代码——同事看是代码,你看是吃豆。
- 🎮 编辑器内吃豆人 — 可见代码就是地图
- 👻 会追人的怪物 — 曼哈顿距离贪心寻路
- ❤️ 3 条命 + 得分 / 剩余 / 连击 状态栏显示
- ⌨ 一键隐身 — 瞬间藏起画面还原代码
- 💾 保存自动还原 — 玩到一半按 Ctrl+S 会先把原代码写回再保存,不会毁文件
- 🎯 只用可见范围 — 大文件不卡
- 🔄 隐藏后能续玩 — Ctrl+Alt+P 切换显隐,同一局继续
- VSCode 打开任意代码文件
- 按 Ctrl+Alt+P(macOS:
Cmd+Alt+P)开始
- 用 Alt+↑ ↓ ← → 移动
- 吃光可见区域内所有非空白字符,避开
M 和 W 怪
- 再按 Ctrl+Alt+P 隐藏(代码立刻还原)
- Esc 完全退出
| 按键 |
作用 |
Ctrl+Alt+P(Mac: Cmd+Alt+P) |
启动 / 隐藏 / 续玩 |
Alt+↑ ↓ ← → |
移动 |
Esc |
退出并还原代码 |
Code Pacman 12/85 Lives:3 Ghosts:2 CHOMP x4 Alt+Arrows move Ctrl+Alt+P hide Esc exit
- 保存保护 — 玩到一半保存会自动先还原代码再写入,磁盘上始终是真代码
- 外部修改检测 — 其他插件 / agent 改动当前文件时游戏会主动中止
- 完整还原 — 退出时恢复你启动前的光标 / selection
| 命令 |
说明 |
FishCN Pacman: Toggle / Start |
启动 / 隐藏 / 续玩 |
FishCN Pacman: Exit |
完全退出并还原 |
FishCN Pacman: Move Up/Down/Left/Right |
移动(已绑 Alt+方向键) |
- 在 100-500 行密集代码文件里玩最爽
- 切换 tab 会自动安全隐藏
- 游戏期间不要手动编辑——会触发地图重建
- 地图是启动时的可见范围,启动后滚屏不会扩展地图
- 怪物 AI 是贪心曼哈顿,喜欢走直线
- 不能在非文本编辑器(Notebook、设置 UI 等)玩
MIT © fishcn
- 💬 FishCN Chat — LAN P2P encrypted chat in the VSCode terminal
- 📖 FishCN Reader — TXT / EPUB / MD novel reader in the VSCode terminal