Skip to content

Instantly share code, notes, and snippets.

@vitaLee
Last active February 4, 2022 05:22
Show Gist options
  • Select an option

  • Save vitaLee/5013169 to your computer and use it in GitHub Desktop.

Select an option

Save vitaLee/5013169 to your computer and use it in GitHub Desktop.

Revisions

  1. vitaLee renamed this gist Oct 31, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Vitaliy Berov created this gist Feb 22, 2013.
    3 changes: 3 additions & 0 deletions Default (OSX).sublime-keymap
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    [
    { "keys": ["super+0"], "command": "reset_font_size_to_user_defaults" }
    ]
    3 changes: 3 additions & 0 deletions Preferences.sublime-settings
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    {
    "default_font_size": 10
    }
    11 changes: 11 additions & 0 deletions reset_font_size_commad.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    import sublime
    import sublime_plugin


    class ResetFontSizeToUserDefaultsCommand(sublime_plugin.ApplicationCommand):
    def run(self):
    s = sublime.load_settings("Preferences.sublime-settings")

    if s.has('default_font_size'):
    s.set('font_size', s.get('default_font_size'))
    sublime.save_settings("Preferences.sublime-settings")