sublime.Settings

ST2



ST3



add_on_change ST2&3

ST2&3 add_on_change(key, on_change) # => None

Register a callback to be run whenever a setting in this object is changed.



clear_on_change ST2≠3

ST2 clear_on_change(key) # => None

Remove all callbacks registered with the given key.



ST3 clear_on_change(key) # => None

Remove all callbacks registered with the given key.



erase ST2&3

ST2&3 erase(name) # => None

Removes the named setting. Does not remove it from any parent Settings.



get ST2≠3

ST2 get(name) # => value

Returns the named setting.



ST2 get(name, default) # => value

Returns the named setting, or default if it's not defined.



ST3 get(name, <default>) # => value

Returns the named setting, or default if it's not defined. If not passed, default will have a value of None.



has ST2≠3

ST2 has(name) # => bool

Returns true iff the named option exists in this set of Settings or one of its parents.



ST3 has(name) # => bool

Returns True iff the named option exists in this set of Settings or one of its parents.



set ST2≠3

ST2 set(name, value) # => None

Sets the named setting. Only primitive types, lists, and dictionaries are accepted.



ST3 set(name, value) # => None

Sets the named setting. Only primitive types, lists, and dicts are accepted.




Generated from the official documentation on Sat Oct 29 20:16:46 EEST 2016 by Leonid Shevtsov.