Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Restore EditorsNew to Visual Studio Code? Get it now.

Restore Editors

Preview

Eric Amodio

|
9,528 installs
| (6) | Free
Quickly save and restore all of the open editors
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Restore Editors

Quickly save and restore all of the open editors.

Editors are saved into a persisted per-folder "slot" for later retrieval. This basically means that saving the open editors for one opened folder, will not overwrite or interfere with saving/restoring/clearing editors in another opened folder.

NOTE: Since VS Code doesn't yet support any API to access opened editors (see vscode #15178), this extension employs what amounts to a hack to gain access to them. As such there are many limitations in what can currently be saved and restored -- it is basically limited to only file-based text documents.

preview

Features

  • Adds a Show Saved Editors command (restoreEditors.showQuickEditors) with a shortcut of ctrl+k ctrl+e (cmd+k cmd+e on macOS) to show a quick pick menu of the currently saved editors

    • Quickly see the set of saved editors; select an editor entry to open it
    • Provides entries to Save Opened Editors, Open Saved Editors when available, and Clear Saved Editors when available
    • Use the alt+right arrow shortcut on an entry to execute it without closing the quick pick menu
  • Adds a Save Opened Editors command (restoreEditors.save) to save all of the open editors

  • Adds a Open Saved Editors command (restoreEditors.open) to open previously saved editors

  • Adds a Restore Only Saved Editors command (restoreEditors.restore) to restore (close all, then re-open) previously saved editors

  • Adds a Clear Saved Editors command (restoreEditors.clear) to clear previously saved editors

Extension Settings

Name Description
restoreEditors.openPreview Specifies whether or not to open single editors in a preview tab

Known Issues

  • Many limitations as noted above
  • #1 - Do you have to cycle through the tabs?
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2022 Microsoft