Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>FishCN PacmanNew to Visual Studio Code? Get it now.
FishCN Pacman

FishCN Pacman

代码吃豆

| (0) | Free
Turn your active VSCode editor into a stealth Pac-Man playground. Eat the code, dodge ghosts, restore everything in one keystroke.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FishCN Pacman

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

Version License VSCode

English · 中文


English

Overview

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.

Features

  • 🎮 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

How to Play

  1. Open any code file in VSCode
  2. Press Ctrl+Alt+P (Cmd+Alt+P on macOS) to start
  3. Use Alt+↑ ↓ ← → to move
  4. Eat all non-whitespace characters in the visible range, avoid M and W ghosts
  5. Press Ctrl+Alt+P again to hide (code restored instantly)
  6. Press Esc to fully exit

Keybindings

Key Action
Ctrl+Alt+P (Cmd+Alt+P Mac) Start / Hide / Resume
Alt+↑ ↓ ← → Move player
Esc Exit and restore code

Status Bar

Code Pacman 12/85  Lives:3  Ghosts:2  CHOMP x4  Alt+Arrows move  Ctrl+Alt+P hide  Esc exit

Safety

  • 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

Commands

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)

Tips

  • 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

Known Limitations

  • 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 切换显隐,同一局继续

玩法

  1. VSCode 打开任意代码文件
  2. 按 Ctrl+Alt+P(macOS:Cmd+Alt+P)开始
  3. 用 Alt+↑ ↓ ← → 移动
  4. 吃光可见区域内所有非空白字符,避开 M 和 W 怪
  5. 再按 Ctrl+Alt+P 隐藏(代码立刻还原)
  6. 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+方向键)

Tips

  • 在 100-500 行密集代码文件里玩最爽
  • 切换 tab 会自动安全隐藏
  • 游戏期间不要手动编辑——会触发地图重建

已知限制

  • 地图是启动时的可见范围,启动后滚屏不会扩展地图
  • 怪物 AI 是贪心曼哈顿,喜欢走直线
  • 不能在非文本编辑器(Notebook、设置 UI 等)玩

License

MIT © fishcn

Sister Extensions

  • 💬 FishCN Chat — LAN P2P encrypted chat in the VSCode terminal
  • 📖 FishCN Reader — TXT / EPUB / MD novel reader in the VSCode terminal
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft