Eduard
Eduard

Reputation: 9205

Cancel unsaved changes without closing the files

Case:
1. Open a file.
2. Make some changes.
3. Cancel all the unsaved changes at once without closing the file.

Is it possible to achieve this in VS Code?

Upvotes: 3

Views: 1310

Answers (1)

Eduard
Eduard

Reputation: 9205

Silly way:

  1. File.
  2. Revert Changes.

Using shortcuts:

  1. Click on the cog in the bottom-right corner.
  2. Keyboard shortcuts.
  3. Search for workbench.action.file.revert.
  4. Assign the appropriate shortcut.
  5. Use the shortcut whenever needed.

Upvotes: 9

Related Questions