The layout looks like this:
This is the config you need to put:
- create a config file Main.sublime-menu in your sublime2\Data\Packages\User directory
- copy the config into the file
[{
"id": "view",
"children": [{
"id": "layout",
"children": [{
"command": "set_layout",
"caption" : "Custom: 3 Pane",
"mnemonic": "C",
"args": {
"cells": [[0, 0, 1, 1], [0, 1, 2, 2], [1, 0, 2, 1]],
"rows": [0.0, 0.5, 1.0],
"cols": [0.0, 0.5, 1.0]
}
}]
}]
}]
- Before you save the file open console (view->show console) and see if the file is parsed and loaded properly
# on the console found 11 files for base name Main.sublime-menu
- If you need now to divide your screen you need to select View->Layout->Custom:3 Pane from menu
- You can create a custom keyboard shortcut as well. To replace the original [alt+ctrl+3] open the Preferences -> Bindings -> User and copy this similar config there.
{
"keys": ["alt+shift+3"],
"command": "set_layout",
"args":
{
"cells": [[0, 0, 1, 1], [0, 1, 2, 2], [1, 0, 2, 1]],
"rows": [0.0, 0.5, 1.0],
"cols": [0.0, 0.5, 1.0]
}
}
References
No comments:
Post a Comment