Sublime Text 3 - 调整面板大小的快捷键?

14

我喜欢使用Sublime Text。我通常同时打开两个窗格(列),在它们之间切换。每当从一个窗格跳到另一个窗格时,我通常会重新调整大小一些。为此,我必须将鼠标放置在垂直滚动条的右侧,直到出现双重水平箭头。有时很难准确地抓住可调整大小的位置。

我曾经用过其他应用程序,其中有快捷键可以自动切换到水平调整箭头。Sublime Text 中是否有这样的快捷键(或软件包)?我搜索了却没有找到。

谢谢!

4个回答

15

打开

偏好设置 -> 按键绑定 - 用户

然后添加

{
    "keys": ["ctrl+super+left"]
    ,"command": "set_layout"
    ,"args": {
        "cols": [0.0, 0.75, 1.0]
        ,"rows": [0.0, 1.0]
        ,"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
    }
  },
  {
    "keys": ["ctrl+super+right"]
    ,"command": "set_layout"
    ,"args": {
        "cols": [0.0, 0.25, 1.0]
        ,"rows": [0.0, 1.0]
        ,"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
    }
  },
  {
    "keys": ["ctrl+super+up"]
    ,"command": "set_layout"
    ,"args": {
        "cols": [0.0, 0.5, 1.0]
        ,"rows": [0.0, 1.0]
        ,"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
    }
  }

按下ctrl + super + left键 = 扩大左窗格

按下ctrl + super + right键 = 扩大右窗格

按下ctrl + super + up键 = 使两个窗格大小相同


11

请查看Origami软件包。

它具有缩放模式和origami_auto_zoom_on_focus功能。


6

0

我更喜欢使用 Origami,并且加上 origami_auto_zoom_on_focus 功能,另外还要 使用 ControlCmdLeftRight 来重置窗格。

  {
    "keys": ["ctrl+super+left"],
    "command": "set_layout",
    "args": {
        "cols": [0.0, 0.5, 1.0],
        "rows": [0.0, 1.0],
        "cells": [[0, 0, 1, 1], [1, 0, 2, 1]],
    },
  },
  {
    "keys": ["ctrl+super+right"],
    "command": "set_layout",
    "args": {
        "cols": [0.0, 0.5, 1.0],
        "rows": [0.0, 1.0],
        "cells": [[0, 0, 1, 1], [1, 0, 2, 1]],
    },
  },

在我的 Mac 上,我使用 Spectacle 进行类似的绑定,但是使用 FnOptionLeftRight


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接