User Agents

Web browsers and everyday web tech, explained

Restart VS Code After Editing Extensions Config

· 5 min read · Extensions

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Restarting VS Code after editing your extensions configuration is the standard way to apply changes to settings like extensions.json, recommended extensions, or extension-specific configuration files. This guide walks you through the quickest and most reliable methods to restart VS Code, whether you're on Windows, macOS, or Linux, and covers what to do if a simple restart doesn't take effect.

What You'll Need

  • VS Code installed and open.
  • Access to the Command Palette (Ctrl+Shift+P on Windows/Linux, Cmd+Shift+P on macOS).
  • Your edited configuration file saved (e.g., extensions.json in the .vscode folder of your workspace).

Step-by-Step

  1. Save your configuration file. Make sure the file you edited (like extensions.json or settings.json) is saved. Use Ctrl+S (Windows/Linux) or Cmd+S (macOS) to save.
  2. Open the Command Palette. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS). This opens the palette at the top of the window.
  3. Type "Reload Window". Start typing Reload Window in the palette. You'll see the command "Developer: Reload Window" appear in the list.
  4. Select the command. Click on "Developer: Reload Window" or press Enter when it's highlighted. This will close and reopen the current VS Code window instantly, reloading all extensions and configuration files.
  5. Wait for the window to reload. The window will flash briefly and reopen. Your open files and unsaved changes (if any) are preserved, and the new configuration is applied.
  6. Verify the changes. Check if your extension changes took effect. For example, if you added a recommended extension, you should see a prompt to install it, or if you disabled an extension, it should no longer be active.

Common Mistakes

  • Forgetting to save the file. If you haven't saved the edited config file, the reload won't pick up the changes. Always save before reloading.
  • Using the wrong command. Some users confuse "Reload Window" with "Restart Extension Host" (which only restarts the extension host, not the whole window). For config changes, use "Reload Window".
  • Editing the wrong file. Make sure you're editing the correct extensions.json (workspace-level) versus the global user settings. Workspace files are in the .vscode folder at the root of your project.
  • Not closing the Command Palette. If the palette is still open when you press Enter, it might select a different command. Make sure the correct command is highlighted.

Tips

  • Use the keyboard shortcut. After the first time, you can just press Ctrl+Shift+P (or Cmd+Shift+P) and type "reload" — the command usually appears first, so you can press Enter immediately.
  • Reload only the extension host. If you only changed extension settings (not the list of extensions), you can use "Developer: Restart Extension Host" to save time, but a full window reload is safer for config files.
  • Check the status bar. After reload, look at the bottom-left corner for any error notifications about extension loading issues.
  • Use the command line. If you prefer, you can close and reopen VS Code from the terminal with code . in the project folder, but the Reload Window command is faster and preserves your layout.

Troubleshooting

Reload Window doesn't apply changes

If the window reloads but your changes don't take effect, first check that the file you edited is actually the one being read. For extensions.json, it must be in the .vscode folder of the workspace you have open. Also verify the JSON syntax is valid — a single missing comma can cause the file to be ignored.

Extensions still show as active after disabling

If you disabled an extension in settings and it still runs, try a full restart of VS Code (close the window completely and reopen it). Sometimes the extension host doesn't fully reset with a reload. On Windows, also check if the extension is listed in the "Disabled" section of the Extensions view.

VS Code freezes during reload

If the window hangs, press Ctrl+Shift+P (or Cmd+Shift+P) and run "Developer: Reload Window" again. If that fails, force-quit VS Code (Task Manager on Windows, Activity Monitor on macOS, or killall code on Linux) and reopen it. Your unsaved files may be lost if you force-quit.

Changes to recommended extensions not prompting

The prompt to install recommended extensions appears only when you open a workspace that has an extensions.json with recommendations. If you don't see it, click the extensions icon in the sidebar and look for a "Recommended" section, or run the command "Extensions: Show Recommended Extensions".

Frequently Asked Questions

Does Reload Window lose my unsaved changes?

No. VS Code preserves unsaved changes in open files during a reload. However, it's always good practice to save before reloading, especially if you have many files open.

What's the difference between Reload Window and Restart Extension Host?

Reload Window restarts the entire VS Code interface, including the extension host. Restart Extension Host only restarts the process that runs extensions, which is faster but may not pick up changes to the core configuration files.

Can I restart VS Code from the command line?

Yes, you can close VS Code and run code . in your project directory to reopen it. This is equivalent to a full restart, but it doesn't preserve your current window layout (like split editors).

Why does my extensions.json not work?

Common reasons: the file is not named exactly extensions.json, it's not in the .vscode folder, the JSON is malformed, or the extension IDs are incorrect. Check the official VS Code documentation for the correct schema.

Do I need to restart VS Code after editing settings.json?

Most settings in settings.json apply immediately, but some (like editor font size) require a reload. If a change doesn't take effect, use Reload Window to be safe.

Is there a way to auto-reload after saving config files?

Not by default. You can install an extension like "Reload on Save" or use a task to run the reload command, but it's usually simpler to just press Ctrl+Shift+P and type "reload" when needed.