Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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