Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lourenzo
Last active December 29, 2015 03:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lourenzo/7607089 to your computer and use it in GitHub Desktop.
Save lourenzo/7607089 to your computer and use it in GitHub Desktop.
Revert all open files on the current window from Sublime Text Console - Works with versions 2 and 3
# Run this one-liner from the Sublime Text console if you need to revert all open documents
[ view.run_command('revert') for view in sublime.Window.views(sublime.active_window()) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment