OSDN Git Service

Regular updates
[twpd/master.git] / atom.md
1 ---
2 title: Atom
3 category: Apps
4 layout: 2017/sheet
5 updated: 2021-09-10
6 ---
7
8 ## Shortcuts
9 {: .-three-column}
10
11 ### Tree
12
13 | Shortcut | Description         |
14 | -------- | ------------------- |
15 | `⌘\`     | Toggle tree         |
16 | `⌘⇧\`    | Reveal current file |
17 {: .-shortcuts}
18
19 ### Comments
20
21 | Shortcut | Description     |
22 | -------- | --------------- |
23 | `⌘/`     | Toggle comments |
24 {: .-shortcuts}
25
26 ### View
27
28 | Shortcut             | Description                                     |
29 | --------             | ----------------------                          |
30 | `⌘k` `←,→,↑,↓`       | Split pane to the left, right, up, or down      |
31 | ---                  | ---                                             |
32 | `⌘⌥=`                | Grow pane                                       |
33 | `⌘⌥-`                | Shrink pane                                     |
34 | ---                  | ---                                             |
35 | `^⇧←`/`^⇧→`          | Move tab to left/right                          |
36 {: .-shortcuts}
37
38 ### Bracket matcher
39
40 | Shortcut | Description                    |
41 | -------- | ------------------------------ |
42 | `^m`     | Go to matching bracket         |
43 | `^⌫`     | Remove brackets from selection |
44 | `^⌘m`    | Select inside brackets         |
45 | `⌥⌘.`    | Close tag                      |
46 {: .-shortcuts}
47
48 ### Symbols view
49
50 | Shortcut | Description                      |
51 | -------- | -------------------------------- |
52 | `⌥⌘↓`    | Jump to declaration under cursor |
53 | `^⇧r`    | Show tags                        |
54 {: .-shortcuts}
55
56 Symbols view enables Ctags support for Atom.
57
58 See: [Symbols view](https://atom.io/packages/symbols-view)
59
60 ### Git
61
62 | Shortcut | Description                    |
63 | -------- | ------------------------------ |
64 | `^⇧9` | Show Git pane |
65 | `^⇧8` | Show GitHub pane |
66 {: .-shortcuts}
67
68 ### Editing
69
70 | Shortcut | Description    |
71 | -------- | -------------- |
72 | `⌘d`     | Select word    |
73 | `⌘l`     | Select line    |
74 | ---      | ---            |
75 | `^⌘↑`     | Move line up   |
76 | `^⌘↓`     | Move line down |
77 | ---      | ---            |
78 | `⌘⏎`     | New line below |
79 | `⌘⇧⏎`    | New line above |
80 | ---      | ---            |
81 | `^⇧k`    | Delete line    |
82 | `⌘⇧d`    | Duplicate line |
83 {: .-shortcuts}
84
85 ### Project
86
87 | Shortcut | Description             |
88 | -------- | ----------------------- |
89 | `⌘⇧p`    | Command palette         |
90 | `⌘⇧o`    | Add project folder      |
91 | ---      | ---                     |
92 | `⌘n`     | New file                |
93 | `⌘⇧n`    | New window              |
94 | ---      | ---                     |
95 | `⌘f`     | Find in file            |
96 | `⌘⇧f`    | Find in project         |
97 | `⌘t`     | Search files in project |
98 {: .-shortcuts}
99
100 ## Notes
101
102 ### ⌘
103
104 - For Windows and Linux, `⌘` is the `Control` key.
105 - For macOS, it's the `Command` key.
106
107 ### ⌥
108
109 - For Windows and Linux, `⌥` is the `Alt` key.
110 - For macOS, it's the `Option` key.