Skip to content
| Marketplace
Sign in
Visual Studio Code>Education>Minesweeper for VSCodeNew to Visual Studio Code? Get it now.
Minesweeper for VSCode

Minesweeper for VSCode

zhanwangfeng

|
4 installs
| (0) | Free
A classic Minesweeper game inside VSCode with difficulty TreeView and i18n (en/cn).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Minesweeper for VSCode

VS Marketplace Installs Downloads Rates

A classic Minesweeper game that runs inside Visual Studio Code.

  • GitHub: https://github.com/zhanwangfeng/MinesweeperForVSCode
  • VSCode: https://marketplace.visualstudio.com/items?itemName=zhanwangfeng.minesweeper-for-vscode

Features

  • Activity Bar entry — a mine icon opens the Minesweeper view container.
  • Main "Open Game" button — opens (or focuses) the game in a webview.
  • TreeView difficulty selector — choose Easy / Medium / Hard; the current selection is highlighted and a "Select" action is available per item.
  • Webview game board — left-click to reveal, right-click to flag, flood-fill, timers, and win/lose detection.
  • Language switching (en / cn) — a toolbar button toggles the UI language; also respects the minesweeper.language setting (auto / en / cn) which follows the VSCode locale.

Usage

  1. Press the mine icon in the Activity Bar (or run command Minesweeper: Open Game).
  2. Pick a difficulty from the TreeView on the left.
  3. Play in the webview. Use Restart to reset and Switch Language to toggle en/cn.

Build & Run (for development)

npm install
npm run compile        # compile to dist/
# Press F5 in VSCode to launch the Extension Development Host

Configuration

Setting Default Description
minesweeper.language auto UI language: auto (follows VSCode locale), en, or cn.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft