Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rajatguptarg/2cbc5d884f54d03cd6e9 to your computer and use it in GitHub Desktop.
Save rajatguptarg/2cbc5d884f54d03cd6e9 to your computer and use it in GitHub Desktop.

Revisions

  1. @chrissimpkins chrissimpkins created this gist Jul 13, 2015.
    200 changes: 200 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,200 @@

    Use these rapid keyboard shortcuts to control the [GitHub Atom text editor](http://atom.io) on Mac OSX.
    <!--More-->
    # Key to the Keys
    - ⌘ : Command key
    - ⌃ : Control key
    - ⌫ : Delete key
    - ← : Left arrow key
    - → : Right arrow key
    - ↑ : Up arrow key
    - ↓ : Down arrow key
    - ⌥ : Option or Alt key
    - ↩ : Return or Enter key
    - ⇧ : Shift key

    # Contents
    - [The Command Palette](#atom_cmd_palette)
    - [Configuration](#atom_config)
    - [Application Tasks](#atom_app_tasks)
    - [Autocomplete](#atom_autocomplete)
    - [Bookmarks](#atom_bookmarks)
    - [Brackets](#atom_brackets)
    - [Code Folding](#atom_code_fold)
    - [Code Navigation &amp; Management](#atom_code_nav)
    - [Character Transformations](#atom_char_transform)
    - [Comments](#atom_comments)
    - [Editor View Tasks](#atom_editor_view)
    - [File Tasks](#atom_file)
    - [Find &amp; Replace](#atom_find_replace)
    - [Font Tasks](#atom_font)
    - [Grammar](#atom_grammar)
    - [Search Tasks](#atom_search)

    <h2 id="atom_cmd_palette"> The Command Palette</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Open Command Palette** | ⌘-⇧-p |


    <h2 id="atom_config">Configuration</h2>
    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Open Configuration Editor** | ⌘-, |

    <h2 id="atom_app_tasks">Application Tasks</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Hide Application** | ⌘-h |
    | **Hide Other Applications** | ⌥-⌘-h |
    | **Minimize Application** | ⌘-m |
    | **New File** | ⌘-n |
    | **New Window** | ⌘-⇧-n |
    | **Open Application** | ⌘-o |
    | **Open Dev** | ⇧-⌘-o |
    | **Quit** | ⌘-q |

    <h2 id="atom_autocomplete">Autocomplete</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Toggle Autocomplete** | ⌃-<code>space</code> |

    <h2 id="atom_bookmarks">Bookmarks</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Toggle Bookmark** | ⌘-<code>F2</code> |
    | **View All Bookmarks** | ⌃-<code>F2</code> |
    | **Jump to Next Bookmark** | <code>F2</code> |
    | **Jump to Previous Bookmark** | ⇧-<code>F2</code>|
    | **Clear All Bookmarks** | ⌘-⇧-<code>F2</code> |

    <h2 id="atom_brackets">Brackets</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Find Matching Bracket** | ⌃-m |

    <h2 id="atom_code_fold">Code Folding</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Fold Code** | ⌥-⌘-[ |
    | **Unfold Code** | ⌥-⌘-] |
    | **Fold at Indentation Level (N)** | ⌘-k cmd-<code>N</code> |
    | **Fold Selected Text** | ⌥-⌘-⌃-f |
    | **Unfold All Code** | ⌥-⌘-} |

    <h2 id="atom_code_nav">Code Navigation &amp; Management</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Cut to End of Line** | ⌃-k |
    | **Delete to Beginning of Word** | ⌥-⌫ |
    | **Delete to End of Word** | ⌥-d |
    | **Delete Line** | ⌃-⇧-k |
    | **Duplicate Line** | ⌘-⇧-d |
    | **Go to Line** | ⌃-g |
    | **Go to Matching Bracket** | ⌃-m |
    | **Indent Selected Text** | ⌘-] |
    | **Outdent Selected Text** | ⌘-[ |
    | **Join Lines** | ⌘-j |
    | **Move to Beginning of Word** | ⌥-b |
    | **Move to End of Word** | ⌥-f |
    | **Move to Beginning of Line** | ⌃-a |
    | **Move to End of Line** | ⌃-e |
    | **Move Line Up** | ⌘-⌃-↑ |
    | **Move Line Down** | ⌘-⌃-↓ |
    | **Move to Top of File** | ⌘-↑ |
    | **Move to Bottom of File** | ⌘-↓ |
    | **Move to First Character of Line** | ⌘-← |
    | **Move to Last Character of Line** | ⌘-→|
    | **Select Left Character** | ⌘-⌃-b |
    | **Select Right Character** | ⌘-⌃-f |
    | **Select to Beginning of Word** | ⌥-⇧-b |
    | **Select to End of Word** | ⌥-⇧-f |
    | **Select Entire Word** | ⌃-⇧-w |
    | **Select to First Character of Line** | ⌥-⇧-a |
    | **Select to Last Character of Line** | ⌥-⇧-e |
    | **Select to Same Position, Next Line** | ⌥-⇧-n |
    | **Select to Same Position, Previous Line** | ⌥-⇧-p |
    | **Select to Top of File** | ⌘-⇧-↑ |
    | **Select to Bottom of File** | ⌘-⇧-↓ |
    | **Select All** | ⌘-a |
    | **Select Next** | ⌘-d |
    | **Select Line** | ⌘-L |
    | **Toggle Line Comments** | ⌘-/ |

    <h2 id="atom_char_transform">Character Transformations</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Convert Tabs to Spaces** | ⌥-⌘-[ |
    | **Convert Spaces to Tabs** | ⌥-⌘-] |
    | **Convert to Upper Case** | ⌘-k-u |
    | **Convert to Lower Case** | ⌘-k-L |

    <h2 id="atom_comments">Comments</h2>
    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Toggle Comment** | ⌘-/ |

    <h2 id="atom_editor_view">Editor View Tasks</h2>
    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Split Panes Vertically** | ⌘-k-↓ |
    | **Split Panes Horizontally** | ⌘-k-→ |
    | **Vertical Navigation Panes** | ⌘-k ⌘-↓ |
    | **Horizontal Navigation Panes** | ⌘-k ⌘-→ |
    | **Toggle Full Screen** | ⌃-⌘-f |
    | **Toggle Tree View** | ⌘-\ |

    <h2 id="atom_file">File Tasks</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Fuzzy Find Files** | ⌘-t |
    | **Find Open File** | ⌘-b |
    | **Find Modified, Untracked (git) File** | ⌘-⇧-b |
    | **Open Tree View** | ⌃-0 |
    | **Toggle Tree View** | ⌘-\ |
    | **Add a File** | a |
    | **Move a File** | m |
    | **Delete a File** ||
    | **Reopen Last File** | ⌘-⇧-t |

    <h2 id="atom_find_replace">Find &amp; Replace</h2>
    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Find String in Current File** | ⌘-f |
    | **Find String in All Project Files** | ⇧-⌘-f |
    | **Find Next Matching String** | ⌘-g |
    | **Find Previous Matching String** | ⇧-⌘-g |
    | **Select Next Matching String** | ⌘-d |
    | **Select All Matching Strings** | ⌃-⌘-g |
    | **Replace String in Current File** | ⌥-⌘-f |

    <h2 id="atom_font">Font Tasks</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Increase Font Size** | cmd-+ |
    | **Decrease Font Size** | cmd-- |

    <h2 id="atom_grammar">Grammar</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Select Grammar** | ⌃-⇧-L |

    <h2 id="atom_search">Search Tasks</h2>

    | <span style="font-size:22px;">Task</span> | <span style="font-size:22px;"><i class="icon-apple" align="center"></i> Keystrokes</span> |
    | --------| --------- |
    | **Search for Symbol** | ⌘-r |
    | **Search for Symbol Across Project** | ⌘-⇧-r |