Last active
February 4, 2022 05:22
-
-
Save vitaLee/5013169 to your computer and use it in GitHub Desktop.
Revisions
-
vitaLee renamed this gist
Oct 31, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Vitaliy Berov created this gist
Feb 22, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ [ { "keys": ["super+0"], "command": "reset_font_size_to_user_defaults" } ] This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ { "default_font_size": 10 } This file contains hidden or 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 charactersOriginal 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")