Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3 - Shortcut to Pane Resizing?

I love Sublime Text. I work with 2 panes (columns) open, jumping from one to the other. Whenever going from one pane to the other, I typically resize it some amount. To do this, I must position the mouse over just right of the vertical scrollbar until I see the double horizontal arrows appear. Sometimes it's a pain to hit just the right spot to grip for resizing.

I've used other apps where there's a shortcut key that automatically snaps me to horizontal resizing arrows. Is there such a shortcut key (or package) in Sublime Text? My searching has turned up empty handed.

Thanks!

like image 684
Damon Malkiewicz Avatar asked Oct 06 '14 14:10

Damon Malkiewicz


People also ask

How do I zoom in Sublime Text 3?

Press ctrl + to increase font and ctrl shift + to decrease font size.

What is the shortcut key for Sublime Text?

The shortcut key for this purpose is Ctrl+Shift+P for Windows and Cmd+Shift+P for Mac.


2 Answers

Open

Preferences -> Key Bindings - User

and add

{
    "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 = enlarges left pane

ctrl + super + right = enlarges right pane

ctrl + super + up = makes both panes same size

like image 92
Nebojsa Avatar answered Sep 30 '22 23:09

Nebojsa


Check out the package Origami.

It has zoom mode and origami_auto_zoom_on_focus.

like image 42
leesei Avatar answered Sep 30 '22 22:09

leesei