Split Screen in Atom Editor

Is there a way (plugin or something) to use split screen in the Atom Editor?

I've looked inside the menus, but I can't find any related options.


Solution 1:

Using the command palette

Open the command palette with cmd + shift + p (OSX) or ctrl + shift + p (Linux/Windows) and type "split". You'll see options for Up, Down, Left, and Right split.

Using keyboard shortcuts

Split the current tab in a direction with the following shortcuts

  • Up       cmd / ctrl + k then
  • Down  cmd / ctrl + k then
  • Left     cmd / ctrl + k then
  • Right   cmd / ctrl + k then

You can close an active split pane with cmd / ctrl + k then cmd / ctrl + w.

Move between panes

If you want to move between open panes (with the keyboard) you have to modify your keymap file. Go to Atom -> Open Your Keymap and include this:

'body':
  'cmd-alt left': 'window:focus-pane-on-left'
  'cmd-alt right': 'window:focus-pane-on-right'
  'cmd-alt up': 'window:focus-pane-above'
  'cmd-alt down': 'window:focus-pane-below'
  'cmd-alt-2': 'pane:split-right'
  'cmd-alt-3': 'pane:split-down'

This is my personal setup. I was used to Sublime's default cmd + alt + arrow. Change the left side commands to your personal preference.

Note

You need to press cmd-alt once, release, and then press the arrow button. Otherwise it won't work.

Solution 2:

I found this at Split Windows - issue #64:

It seems like Atom already has support for splitting windows (cmd-k + arrow key)