Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rodrigogalura/dfc7cf4f38a1b887d551160d85283e04 to your computer and use it in GitHub Desktop.
Save rodrigogalura/dfc7cf4f38a1b887d551160d85283e04 to your computer and use it in GitHub Desktop.
Sublime Text 3 - Toggle Vintage Mode Plugin
import sublime
class ToggleVintageCommand(sublime_plugin.TextCommand):
def run(self, edit):
settings = sublime.load_settings('Preferences.sublime-settings')
ignored = settings.get("ignored_packages")
if "Vintage" in ignored:
ignored.remove("Vintage")
else:
ignored.append("Vintage")
settings.set("ignored_packages", ignored)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment