精确调整Sublime的布局

Standard

按ctrl+` 键入window.get_layout()回车查看当前layout,然后结合下面的图一看你就会明白了。

self.window.set_layout({
            "cols": [0.0, 0.5, 1.0],
            "rows": [0.0, 0.25, 0.75, 1.0],
            "cells": [[0, 0, 1, 2], [1, 0, 2, 1], [0, 2, 1, 3], [1, 1, 2, 3]]
            })
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
             0.0                             0.5                           1.0
              +------------------------------->;+---------------------------->
 
             0,0                            1,0                             2,0
      0.0+    +-------------------------------+-----------------------------+
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         v    |                              1,1                           2,1
     0.25+    |                               +-----------------------------+
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |  0,2                              1,2                            |
         v    +-------------------------------+                             |
     0.75+    |                               |                             |
         |    |                               |                             |
         |    |                               |                             |
         |   0,3                             1,3                           2,3
      1.0v    +-------------------------------+-----------------------------+

Xdebug.sublime-settings

{
    "ide_key": "sublime.xdebug",
    "max_children": 32,
    "max_depth": 5,
     "debug_layout" : {
        "cols": [0.0, 0.8, 1.0],
        "rows": [0.0, 0.6, 1.0],
        "cells": [[0, 0, 1, 2], [1, 0, 2, 1], [1, 1, 2, 2]]
    },
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.