Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>StarCraft 2 Map LauncherNew to Visual Studio Code? Get it now.
StarCraft 2 Map Launcher

StarCraft 2 Map Launcher

Playbitstudios

|
3 installs
| (0) | Free
Launch StarCraft II maps directly from VS Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

StarCraft 2 Map Launcher

Launch your StarCraft II map directly from VS Code — no alt-tabbing required.


Features

Status bar launch button

A $(run) SC2: Launch Map button sits in the status bar at all times. One click launches your map.

Run & Debug integration

The extension registers itself as a debug configuration provider. Open the Run and Debug panel and SC2: Launch Map appears in the dropdown — no launch.json needed.

Run & Debug dropdown showing SC2 Launcher

Press F5 or click the green play button to launch.

SC2: Launch Map selected in the Run & Debug panel

Advanced launch options via launch.json

For full control, add an SC2 configuration to your .vscode/launch.json. The extension ships two ready-made templates — open the Run and Debug panel, click Add Configuration, choose SC2 Launcher, and both are written into your launch.json at once.

SC2: Launch Map

Launches a map directly. Suitable for map development.

{
  "name": "SC2: Launch Map",
  "type": "sc2",
  "request": "launch",
  "triggerDebug": true,
  "speed": 4,
  "showErrors": true,
  "testConfig": "SwarmTest.SC2TestConfig"
}

SC2: Launch Mod

Loads a .SC2Mod (or .SC2Components folder) against a test map. Suitable for mod development — edit your data files while SC2 is running, then restart the map in-game without relaunching.

{
  "name": "SC2: Launch Mod",
  "type": "sc2",
  "request": "launch",
  "map": "C:\\path\\to\\MyTestMap.SC2Map",
  "testMod": "Mods\\MyMod.SC2Mod;ComponentList.SC2Components",
  "triggerDebug": false,
  "showErrors": false
}
  • map — the .SC2Map used as the host for your mod. Keep a barebones test map with a start location and some resources. Leave empty to fall back to sc2.mapPath or workspace auto-detection.
  • testMod — path to your .SC2Mod or unpacked .SC2Components folder, passed as -testmod. Relative paths are resolved from the SC2 installation root (e.g. Mods\MyMod.SC2Mod). For unpacked component folders append ;ComponentList.SC2Components (e.g. Mods\MyMod.SC2Mod;ComponentList.SC2Components).

Tip: With component folders you can edit data files while the game is running, save, then restart the map in-game (F10 → d → r on English clients) for a much faster iteration loop.

launch.json with SC2 config options

Option Type Description
triggerDebug boolean Open the in-game trigger debugger window on launch
showErrors boolean Stream SC2 output to the SC2 Output Channel in VS Code
preload boolean Preload map assets before launching
noUserCheats boolean Disable in-game cheat commands
reloadCheck boolean Enable reload checking (-reloadcheck)
meleeMod string Game mode/mod override (e.g. "Void")
difficulty number AI difficulty: 0=VeryEasy, 1=Easy, 2=Medium, 3=Hard
speed number Game speed: 0=Slower, 1=Slow, 2=Normal, 3=Fast, 4=Faster
map string Override the map path for this configuration. Absolute or relative path. Leave empty to use sc2.mapPath or auto-detection
testMod string Path to the .SC2Mod / component folder to load via -testmod
testConfig string Path to a .SC2TestConfig file passed as -testconfig; accepts an absolute path or a path relative to the workspace root

Running SC2 behavior

If StarCraft II is already running when you trigger a launch, the extension kills the existing process and relaunches the map.

By default, sc2.warnIfRunning is enabled, so the extension shows a confirmation dialog before killing a running SC2 instance. Disable this setting if you want launches to skip the prompt and relaunch immediately.

Auto-detects map path

The extension scans your workspace for the first folder ending in .SC2Map and uses it as the map path. No configuration needed for standard project layouts.


Setup

  1. Open Settings (Ctrl+,) and search for SC2.
  2. Set SC2: Install Dir to your StarCraft II root folder.

Settings page showing SC2: Install Dir and SC2: Map Path fields

Setting Description
sc2.installDir Required. Path to your StarCraft II root folder (e.g. C:\StarCraft II).
sc2.mapPath Absolute path to the .SC2Map folder. Leave empty to auto-detect from the workspace.
sc2.warnIfRunning Show a confirmation dialog before killing a running SC2 instance and relaunching the map. Default: true. Disable it to skip the prompt and relaunch immediately.

Requirements

  • Windows
  • StarCraft II installed
  • VS Code >= 1.80
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft