Last active
December 29, 2015 03:19
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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