cheatsheets/atom.md

110 lines
2.9 KiB
Markdown
Raw Permalink Normal View History

2014-10-23 11:38:50 +00:00
---
title: Atom
2015-11-24 04:32:36 +00:00
category: Apps
2021-09-10 13:42:46 +00:00
updated: 2021-09-10
2014-10-23 11:38:50 +00:00
---
## Shortcuts
2017-09-20 04:49:48 +00:00
{: .-three-column}
### Tree
| Shortcut | Description |
| -------- | ------------------- |
| `⌘\` | Toggle tree |
| `⌘⇧\` | Reveal current file |
2017-09-20 04:49:48 +00:00
{: .-shortcuts}
### Comments
2014-10-23 11:38:50 +00:00
| Shortcut | Description |
| -------- | --------------- |
| `⌘/` | Toggle comments |
2017-09-20 04:49:48 +00:00
{: .-shortcuts}
### View
2021-09-10 13:42:46 +00:00
| Shortcut | Description |
| -------- | ---------------------- |
| `⌘k` `←,→,↑,↓` | Split pane to the left, right, up, or down |
| --- | --- |
| `⌘⌥=` | Grow pane |
| `⌘⌥-` | Shrink pane |
| --- | --- |
| `^⇧←`/`^⇧→` | Move tab to left/right |
2017-09-20 04:49:48 +00:00
{: .-shortcuts}
2014-10-23 11:38:50 +00:00
### Bracket matcher
| Shortcut | Description |
| -------- | ------------------------------ |
| `^m` | Go to matching bracket |
2021-09-10 13:42:46 +00:00
| `^⌫` | Remove brackets from selection |
| `^⌘m` | Select inside brackets |
| `⌥⌘.` | Close tag |
2017-09-20 04:49:48 +00:00
{: .-shortcuts}
### Symbols view
| Shortcut | Description |
| -------- | -------------------------------- |
2021-09-10 13:42:46 +00:00
| `⌥⌘↓` | Jump to declaration under cursor |
| `^⇧r` | Show tags |
2017-09-20 04:49:48 +00:00
{: .-shortcuts}
Symbols view enables Ctags support for Atom.
See: [Symbols view](https://atom.io/packages/symbols-view)
### Git
2021-09-10 13:42:46 +00:00
| Shortcut | Description |
| -------- | ------------------------------ |
2017-09-20 04:49:48 +00:00
| `^⇧9` | Show Git pane |
| `^⇧8` | Show GitHub pane |
{: .-shortcuts}
2017-10-26 06:46:25 +00:00
### Editing
| Shortcut | Description |
| -------- | -------------- |
| `⌘d` | Select word |
| `⌘l` | Select line |
| --- | --- |
2021-09-10 13:42:46 +00:00
| `^⌘↑` | Move line up |
| `^⌘↓` | Move line down |
| --- | --- |
| `⌘⏎` | New line below |
| `⌘⇧⏎` | New line above |
| --- | --- |
2021-09-10 13:42:46 +00:00
| `^⇧k` | Delete line |
| `⌘⇧d` | Duplicate line |
2017-10-26 06:46:25 +00:00
{: .-shortcuts}
### Project
| Shortcut | Description |
| -------- | ----------------------- |
| `⌘⇧p` | Command palette |
2021-09-10 13:42:46 +00:00
| `⌘⇧o` | Add project folder |
| --- | --- |
| `⌘n` | New file |
| `⌘⇧n` | New window |
| --- | --- |
| `⌘f` | Find in file |
| `⌘⇧f` | Find in project |
| `⌘t` | Search files in project |
2017-10-26 06:46:25 +00:00
{: .-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.