Skip to content

Instantly share code, notes, and snippets.

@jsstrn
Last active May 31, 2016 08:35
Show Gist options
  • Save jsstrn/47a1f7284c7d7b7cd45ac94814abde8f to your computer and use it in GitHub Desktop.
Save jsstrn/47a1f7284c7d7b7cd45ac94814abde8f to your computer and use it in GitHub Desktop.
Atom shortcuts worth remembering

Here are some shortcut keys worth remembering. They should also work for Sublime Text.

  • Toggle view of sidebar - CMD+K, CMD+B
  • Go to a file - CMD+P then type the file name
  • Select next - CMD+D (Find > Select Next)
  • Select all - CTRL+CMD+G (Find > Select All)
  • Go to beginning/end of the line - CMD+LEFT/RIGHT
  • Select to beginning/end of the line - SHIFT+CMD+LEFT/RIGHT (Selection > Select to Beginning/End of Line)
  • Select the entire line - CMD+L (Selection > Select Line)
  • Select the entire word - SHIFT+CTRL+W (Selection > Select Word)
  • Move line up/down - CTRL+CMD+UP/DOWN (Edit > Lines > Move Lines Up/Down)
  • Select within brackets - CTRL+CMD+M (Selection > Select within brackets)
  • Add selection above/below - SHIFT+ CTRL+UP/DOWN (Selection > Add Selection Above)
  • Add a bookmark to a line - FN+CMD+F2 and F2 to go to next bookmark

Atom's auto-indent (Edit > Lines > Auto Indent) is a great feature, but it has no default keybinding. To create a custom keybinding for this, go to: Atom > Keymap... then paste the following lines of code and save it.

'atom-text-editor':
    'ctrl-cmd-]': 'editor:auto-indent'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment