Skip to content

Instantly share code, notes, and snippets.

@frankko
Last active November 21, 2018 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankko/5db4d671156815755fab89b4611afaba to your computer and use it in GitHub Desktop.
Save frankko/5db4d671156815755fab89b4611afaba to your computer and use it in GitHub Desktop.
Example persistent user prefs for Artboard Tools plugin
/*
Just uncomment the pref(s) you wish to override, change the value as desired, and save the file to
~/.sketchplugin.artboard-tools.userprefs.js
(That's at the top level of your home directory.)
*/
// Global, whether the top-most artboard in the layer list should be first (true) or if the bottom-most artboard should be first (false)
// userPrefs.sort_top_to_bottom = false;
// For "Arrange Artboard" command, horizontal space between artboards
// userPrefs.arrange_spacing_x = 128;
// For "Arrange Artboard" command, vertical space between artboards
// userPrefs.arrange_spacing_y = 256;
// For "Arrange Artboard" command, number of columns per row
// userPrefs.arrange_max_cols = 11;
// For "Group Artboard" command, horizontal space between artboards
// userPrefs.group_spacing_x = 128;
// For "Group Artboard" command, vertical space between artboards
// userPrefs.group_spacing_y = 128;
// For "Group Artboards", whether to use a '/' character as the delimeter (true) or '--' (false)
// userPrefs.use_slashes = false;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment