Search code examples
visual-studio-code

VSCode - How to reload all windows


I knew workbench.action.reloadWindow could reload the current VSCode window, how to reload all windows at once, I searched through the keybindings, but didn't find one.

Some use cases:

  1. After upgrading extensions that require reload.
  2. VSCode slowed down for no obvious reason, trying to reload.

Solution

  • On macOS, workbench.action.quit is assigned to cmd+q, use this command to quit the app, then reopening the app will restore all windows.

    On Windows, workbench.action.quit has no assigned shortcut, we need to assign it a shortcut first, use it to quit the app, then reopening the app will restore all windows.