Go to: Synopsis. Return value. Flags. MEL examples.

Synopsis

savePrefs [-colors] [-general] [-hotkeys] [-plugins] [-uiLayout]

savePrefs is undoable, NOT queryable, and NOT editable.

This command saves preferences to disk. If no flags are specified then all pref types get saved out.

Return value

None

Flags

colors, general, hotkeys, plugins, uiLayout
Long name (short name) Argument types Properties
-general(-g) create
Save the general prefs to disk (optionVars)
-uiLayout(-ui) create
Save each window's size and position to disk
-hotkeys(-hk) create
Save the hotkeys to disk
-colors(-c) create
Save the color prefs to disk
-plugins(-pl) create
Save the plug-in prefs to disk

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// only save the hotkeys
savePrefs -hotkeys;

// save everything
savePrefs;

// only save ui layout prefs
savePrefs -uiLayout;