110 lines
2.9 KiB
Markdown
110 lines
2.9 KiB
Markdown
---
|
|
title: Atom
|
|
category: Apps
|
|
updated: 2021-09-10
|
|
---
|
|
|
|
## 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, right, up, or down |
|
|
| --- | --- |
|
|
| `⌘⌥=` | Grow pane |
|
|
| `⌘⌥-` | Shrink pane |
|
|
| --- | --- |
|
|
| `^⇧←`/`^⇧→` | Move tab to left/right |
|
|
{: .-shortcuts}
|
|
|
|
### Bracket matcher
|
|
|
|
| Shortcut | Description |
|
|
| -------- | ------------------------------ |
|
|
| `^m` | Go to matching bracket |
|
|
| `^⌫` | Remove brackets from selection |
|
|
| `^⌘m` | Select inside brackets |
|
|
| `⌥⌘.` | Close tag |
|
|
{: .-shortcuts}
|
|
|
|
### Symbols view
|
|
|
|
| Shortcut | Description |
|
|
| -------- | -------------------------------- |
|
|
| `⌥⌘↓` | 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
|
|
|
|
| Shortcut | Description |
|
|
| -------- | ------------------------------ |
|
|
| `^⇧9` | Show Git pane |
|
|
| `^⇧8` | Show GitHub pane |
|
|
{: .-shortcuts}
|
|
|
|
### Editing
|
|
|
|
| Shortcut | Description |
|
|
| -------- | -------------- |
|
|
| `⌘d` | Select word |
|
|
| `⌘l` | Select line |
|
|
| --- | --- |
|
|
| `^⌘↑` | Move line up |
|
|
| `^⌘↓` | Move line down |
|
|
| --- | --- |
|
|
| `⌘⏎` | New line below |
|
|
| `⌘⇧⏎` | New line above |
|
|
| --- | --- |
|
|
| `^⇧k` | Delete line |
|
|
| `⌘⇧d` | Duplicate line |
|
|
{: .-shortcuts}
|
|
|
|
### Project
|
|
|
|
| Shortcut | Description |
|
|
| -------- | ----------------------- |
|
|
| `⌘⇧p` | Command palette |
|
|
| `⌘⇧o` | 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.
|