Skip to content

Instantly share code, notes, and snippets.

@tfmertz
Last active October 9, 2015 15:58
Show Gist options
  • Save tfmertz/062f3618fe2ecced2348 to your computer and use it in GitHub Desktop.
Save tfmertz/062f3618fe2ecced2348 to your computer and use it in GitHub Desktop.
Shortcut keys for Atom text editor

Atom Shortcut Keys

Editor

Keys Action
cmd + d Select word, additional presses select next occurrence
cmd + k Skip current selection when using cmd + d
ctrl + cmd + up/down Move the current line up or down
ctrl + shift + k Delete current line
cmd + enter Add a line below and take cursor there
cmd + shift + enter Add a line above and take cursor there
cmd + ] Indent line
cmd + [ Outdent line
cmd + l Select entire line
ctrl + g Go to line
ctrl + shift + l Change file language
cmd + \ Hide/show Tree View (directory view)
ctrl + 0 Toggle between Editor and Tree View
ctrl + shift + m Open pane for Markdown Previewer

Directory

Keys Action
cmd + shift + o Open Folder / Project
cmd + shift + f Search entire project directory

Snippets

Awesome

Each package has a list of predefined snippets, use cmd + , to open up the settings tab and click on Packages. Search for your language, click on that package and at the bottom is a list of all it's snippets.

To use a snippet, type the following then press tab

Snippet Output
lorem Fills file with some placeholder text
php Opens a php tag <?php ?>
html Outputs a basic html file structure
-- HTML comment
div Outputs a div with class ready to enter
/** Start javascript comment
fun JS function
for Output for loop
if Output if structure
log Output a console.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment