Skip to content

Instantly share code, notes, and snippets.

@thehig
Last active December 21, 2016 11:09
Show Gist options
  • Save thehig/5ed5341007976e15d427f73f599d8875 to your computer and use it in GitHub Desktop.
Save thehig/5ed5341007976e15d427f73f599d8875 to your computer and use it in GitHub Desktop.
misc: Shortcuts cheat sheet

Shortcuts

Index

  1. cmdr
  2. sublime
    1. origami
    2. colorhighlighter
  3. changelog

cmdr 1, 2

Button Function Notes
Ctrl+` Show/Hide console Quake style console in options menu
Ctrl+R History search
Ctrl+T New Tab

Sublime 1

Fav Key Effect
--- Editing ---
Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+Shift+K delete line
Ctrl+Enter insert line after
Ctrl+Shift+Enter insert line before
Ctrl+Shift+Up/Down move line (or selection) up
L Ctrl+L select line (repeat to select next lines)
D Ctrl+D select word (repeat select others occurrences in context for multiple editing)
Ctrl+M jump to closing bracket for current code, repeat to jump to opening bracket
Ctrl+Shift+M select all contents of the current brackets (curly brackets, square brackets, parentheses)
Ctrl+K+K delete from cursor to end of line
Ctrl+K+Backspace delete from cursor to start of line
Ctrl+] indent current line(s)
Ctrl+[ un-indent current line(s)
Ctrl+Shift+D duplicate line(s)
Ctrl+J join line below to the end of the current line
Ctrl+/ comment/un-comment current line
Ctrl+Shift+/ block comment current selection
Ctrl+Y redo, or repeat last keyboard shortcut command
Ctrl+Shift+V paste and indent correctly
Ctrl+S select next auto-complete suggestion
Ctrl+U soft undo (somehow undoes your movements; it jumps to your last change before undoing it when you repeat this command)
--- Navigation/Goto Anywhere ---
P Ctrl+P quick-open files by name in your project (doesn't seem to need an actual project set up, it just searches in the directories around the currently-opened file
Ctrl+R goto symbol (functions and classes) in the file. Same as Ctrl+P, then type @
Ctrl+; goto word in current file. Same as Ctrl+P, then type #
Ctrl+G goto line in current file. Same as Ctrl+P, then type :
--- General ---
Ctrl+Shift+P command prompt
Ctrl+K+B toggle side bar
--- Find/Replace ---
F Ctrl+F find
Ctrl+H replace
Ctrl+Shift+F find in files
--- Tabs ---
Ctrl+Shift+T open last closed tab (just like in your browser)
Ctrl+PgDn cycle down through open tabs, cycle up with Ctrl+PgUp
Ctrl+Tab cycle through last tabs (repeat to go back further in history)
--- Bookmarks ---
Ctrl+F2 toggle bookmark
F2 next bookmark
Shift+F2 previous bookmark
Ctrl+Shift+F2 clear bookmarks
--- Text manipulation ---
KU Ctrl+K+U upper case
KL Ctrl+K+L lower case

Origami 1

Ctrl + modifier + arrow key

Modifier Effect
no modifiers travel to an adjacent pane
shift carry the current file to the destination
alt clone the current file to the destination
ctrl create an adjacent pane
ctrl+shift destroy an adjacent pane
ctrl+z Zoom the current pane so it takes up 90% of the screen (the fraction is changeable in the keybindings)
ctrl+shift+z Unzoom to equally space all panes
ctrl+r Adjust top and bottom separator
ctrl+c Adjust left and right separator

ColorHighlighter 1

Ctrl + Shift + modifier

Modifier Effect
C Color Picker
A Color Converter
D Go To Variable Declaration
, Previous Color
. Next Color

Changelog

  • Add ColorHighlighter
  • Add sublime
  • Add sublime-origami
  • Add cmdr

To Do

  • Bracket Highlighter
  • Chrome
  • Visual Studio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment