Skip to content

Instantly share code, notes, and snippets.

@mallipeddi
Last active December 26, 2015 06:58
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 mallipeddi/7111309 to your computer and use it in GitHub Desktop.
Save mallipeddi/7111309 to your computer and use it in GitHub Desktop.
Multiple custom layouts for SublimeText editor
INSTRUCTIONS
============
* To generate the JSON definition for a custom layout, use this convenient editor - http://fatihak.in/app/sublimelayout/
* Once you've the JSON definition, copy-paste the JSON text in ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/Main.sublime-menu
* Sublime should automatically recognize the new config, and update the menu options.
[{"id":"view",
"children":[{
"id":"layout",
"children":[
{"command":"set_layout","caption":"Custom Grid - 3 col","args":{"cols":[0,0.33,0.67,1],"rows":[0,0.5,1],"cells":[[0,0,1,2],[1,0,2,2],[2,0,3,1],[2,1,3,2]]}},
{"command":"set_layout","caption":"Custom Grid - 2 col","args":{"cols":[0,0.5,1],"rows":[0,0.5,1],"cells":[[0,0,1,2],[1,0,2,1],[1,1,2,2]]}}
]
}]
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment