Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Visualizer — Algorithms & PlaygroundNew to Visual Studio Code? Get it now.
Visualizer — Algorithms & Playground

Visualizer — Algorithms & Playground

Visualizer Pro

|
1 install
| (0) | Free
LeetCode visualizations and a code playground using the shared Visualizer React components.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Visualizer for VS Code

Watch algorithms and code run step by step, right inside VS Code. Open a problem visualizer to see how an algorithm moves through its data, or paste your own code into the playground and watch its variables and data structures change.

Getting started

  1. Install the extension and open the Command Palette with Cmd+Shift+P (Ctrl+Shift+P on Windows and Linux).
  2. Type "Visualizer" and choose Visualizer: Open Visualizers.
  3. Sign in with Visualizer: Sign In. Your browser opens, and you enter the short code shown in VS Code on the Visualizer website to approve it.

Signing in needs an internet connection. Your plan decides which problems you can open. See the website for current plans.

Commands

Press Cmd+Shift+P (Ctrl+Shift+P on Windows and Linux) and type "Visualizer":

  • Visualizer: Open Visualizers: opens the problem list and visualizers.
  • Visualizer: Sign In: opens your browser to sign in with Google, then shows a short code to enter on the website.
  • Visualizer: Sign Out: signs you out of this VS Code window.
  • Visualizer: Run Active Code in Playground: runs the code in the open editor and shows it step by step.
  • Visualizer: New Playground Example: opens a starter example in the editor and the playground.
  • Visualizer: Ask AI About Active Code: asks a question about the open code. Nothing is sent until you click Ask, and any proposed code opens as an unsaved file for review.
  • Visualizer: Connect AI Assistants (Copilot, Claude Code, Codex): lets your AI assistant use Visualizer. See below.

What you can visualize

  • Problem visualizers: search the problem list by number, title or topic, then step through the algorithm. Each step shows what changed and why.
  • Code playground: write JavaScript, or Python, in an editor tab and run it. The playground draws the steps as a picture you can play back, pause and scrub.

Python

To run Python in the playground, install Python 3. If you use a virtual environment, set visualizer.pythonPath in your settings to its Python executable. Python code runs with your own permissions and files, so only run code you trust. VS Code asks you to trust the workspace before code runs.

Optional local AI

Visualizer: Ask AI About Active Code can use a model you run locally with Ollama, so your code stays on your computer. It can also use the models available through your VS Code AI providers. Nothing is sent until you click Ask.

Use Visualizer from your AI assistant

Your AI assistant can search problems, open a visualizer for you, describe what the panel is showing, and walk through a Python run step by step. Ask it things like "open the visualizer for Two Sum and explain the current step".

  • GitHub Copilot (VS Code 1.101 or newer): nothing to set up. Visualizer appears in the tools list of Copilot Chat in agent mode.
  • Claude Code and Codex: run Visualizer: Connect AI Assistants, choose your assistant, and paste the copied command into a terminal. Node.js must be installed.

Your assistant can only do what your plan allows, the same as the panel. If you are signed out, it will ask you to sign in. Running a Python file always asks for your confirmation first, and the workspace must be trusted.

Requirements

  • VS Code on desktop (Windows, macOS or Linux)
  • An internet connection for sign-in and plan checks
  • Optional: Python 3 for Python examples, and Ollama for local AI
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft