const PreferencesManager = brackets.getModule("preferences/PreferencesManager")PreferencesManager
Context to look up preferences in the current project.
Cached copy of the scopeOrder with the project Scope
Cached copy of the scopeOrder without the project Scope
State project context
State global context
Project then global context
Project scope
Get the full path to the user-level preferences file.
Kind: global function
Returns: string - Path to the preferences file
Creates an extension-specific preferences manager using the prefix given.
A . character will be appended to the prefix. So, a preference named foo
with a prefix of myExtension will be stored as myExtension.foo in the
preferences files.
Kind: global function
| Param | Type | Description |
|---|---|---|
| prefix | string |
Prefix to be applied |
Convenience function that gets a view state
Kind: global function
| Param | Type | Description |
|---|---|---|
| id | string |
preference to get |
| [context] | Object |
Optional additional information about the request |
Convenience function that sets a view state and then saves the file
Kind: global function
| Param | Type | Description |
|---|---|---|
| id | string |
preference to set |
| value | * |
new value for the preference |
| [context] | Object |
Optional additional information about the request |