Dev Setup

When VS Code extensions fail to install (Marketplace, script, or UI)

Diagnose Marketplace blocks, failed code --install-extension lines, duplicate IDs, and offline or corporate network issues after running a Dev Setup script.

Dev Setup ends with a terminal script that calls code --install-extension for each selected ID. Most lines succeed; a few fail and leave you unsure whether to rerun everything. This guide separates “harmless already installed,” “network blocked,” “wrong binary,” and “bad ID” so you can finish without reinstalling VS Code.

Read the exact error line

Copy the failing extension ID and the message after it. “already installed” is success for our purposes—continue. “Failed to install” plus a network or 403/404 message points at Marketplace access or a renamed extension. “code is not recognized” is a PATH problem; fix that first with the shell-command guide on this site.

Corporate and school networks

  • Many campuses and offices filter marketplace.visualstudio.com. Try a personal hotspot once to confirm.
  • Some environments only allow a curated extension gallery—ask IT which IDs are approved.
  • VPN split tunneling can break downloads; try with VPN off if policy allows.

Install one extension manually

  1. Open the Extensions view in VS Code.
  2. Search by the publisher.name ID from the script (not only the display name).
  3. Install from the UI. If the UI also fails, the problem is network or policy, not the script.
  4. If the UI works, rerun only the failed code --install-extension line for the rest.

Wrong code binary

On Linux you might have both code and codium, or a Flatpak VS Code that does not share the same CLI. Run which code / Get-Command code and code --version before trusting the script. Insiders builds use a different command (code-insiders). Match the binary to the editor window you actually use.

Safe reruns

Rerunning the full Dev Setup script is usually safe: installed extensions are skipped or reported as already present. Uncheck extensions you do not want before generating a new script. Optional JSON export backs up your selection list for another machine. Feedback: https://github.com/smartopslab128-ctrl/gif-image-paste/issues