Skip to content

Instantly share code, notes, and snippets.

View lourenzo's full-sized avatar

Lourenzo Ferreira lourenzo

View GitHub Profile
@lourenzo
lourenzo / sublime_revert_open_files.py
Last active December 29, 2015 03:19
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()) ]