106 lines
1.9 KiB
Markdown
106 lines
1.9 KiB
Markdown
---
|
|
title: Atom
|
|
category: Apps
|
|
layout: 2017/sheet
|
|
updated: 2017-09-20
|
|
---
|
|
|
|
Shortcuts
|
|
---------
|
|
{: .-three-column}
|
|
|
|
### Tree
|
|
|
|
| Shortcut | Description |
|
|
| --- | --- |
|
|
| `⌘\` | Toggle tree |
|
|
| `⌘⇧\` | Reveal current file |
|
|
{: .-shortcuts}
|
|
|
|
### Comments
|
|
|
|
| Shortcut | Description |
|
|
| --- | --- |
|
|
| `⌘/` | Toggle comments |
|
|
{: .-shortcuts}
|
|
|
|
### View
|
|
|
|
| Shortcut | Description |
|
|
| --- | --- |
|
|
| `⌘k` `←` | Split pane to the left |
|
|
| --- | --- |
|
|
| `⌘⌥=` | Grow pane |
|
|
| `⌘⌥-` | Shrink pane |
|
|
| --- | --- |
|
|
| `^⇧←` | Move tab to left |
|
|
{: .-shortcuts}
|
|
|
|
### Bracket matcher
|
|
|
|
| `^m` | Go to matching bracket |
|
|
| `^]` | Remove brackets from selection |
|
|
| `^⌘m` | Select inside brackets |
|
|
| `⌥⌘.` | Close tag |
|
|
{: .-shortcuts}
|
|
|
|
### Symbols view
|
|
|
|
| `^⌥↓` | Jump to declaration under cursor |
|
|
| `^⇧r` | Show tags |
|
|
{: .-shortcuts}
|
|
|
|
Symbols view enables Ctags support for Atom.
|
|
|
|
See: [Symbols view](https://atom.io/packages/symbols-view)
|
|
|
|
### Git
|
|
|
|
| `^⇧9` | Show Git pane |
|
|
| `^⇧8` | Show GitHub pane |
|
|
{: .-shortcuts}
|
|
|
|
### Editing
|
|
|
|
| Shortcut | Decription
|
|
| --- | ---
|
|
| `⌘d` | select word
|
|
| `⌘l` | select line
|
|
| --- | ---
|
|
| `⌘↓` | move line down
|
|
| `⌘↑` | move line up
|
|
| --- | ---
|
|
| `⌘⏎` | new line below
|
|
| `⌘⇧⏎` | new line above
|
|
| --- | ---
|
|
| `⌘⇧k` | delete line
|
|
| `⌘⇧d` | duplicate line
|
|
{: .-shortcuts}
|
|
|
|
### Project
|
|
|
|
| Shortcut | Description
|
|
| --- | ---
|
|
| `⌘⇧p` | command palette
|
|
| `⌘⇧a` | add project folder
|
|
| --- | ---
|
|
| `⌘n` | new file
|
|
| `⌘⇧n` | new window
|
|
| --- | ---
|
|
| `⌘f` | find in file
|
|
| `⌘⇧f` | find in project
|
|
| `⌘t` | search files in project
|
|
{: .-shortcuts}
|
|
|
|
## Notes
|
|
|
|
### ⌘
|
|
|
|
- For Windows and Linux, `⌘` is the `Control` key.
|
|
- For macOS, it's the `Command` key.
|
|
|
|
### ⌥
|
|
|
|
- For Windows and Linux, `⌥` is the `Alt` key.
|
|
- For macOS, it's the `Option` key.
|