OSDN Git Service

Regular updates
[twpd/master.git] / atom.md
1 ---
2 title: Atom
3 category: Apps
4 layout: 2017/sheet
5 updated: 2020-07-03
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 |
31 | ---      | ---                    |
32 | `⌘⌥=`    | Grow pane              |
33 | `⌘⌥-`    | Shrink pane            |
34 | ---      | ---                    |
35 | `^⇧←`    | Move tab to left       |
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 | `^⇧9` | Show Git pane |
63 | `^⇧8` | Show GitHub pane |
64 {: .-shortcuts}
65
66 ### Editing
67
68 | Shortcut | Description    |
69 | -------- | -------------- |
70 | `⌘d`     | Select word    |
71 | `⌘l`     | Select line    |
72 | ---      | ---            |
73 | `⌘↓`     | Move line down |
74 | `⌘↑`     | Move line up   |
75 | ---      | ---            |
76 | `⌘⏎`     | New line below |
77 | `⌘⇧⏎`    | New line above |
78 | ---      | ---            |
79 | `⌘⇧k`    | Delete line    |
80 | `⌘⇧d`    | Duplicate line |
81 {: .-shortcuts}
82
83 ### Project
84
85 | Shortcut | Description             |
86 | -------- | ----------------------- |
87 | `⌘⇧p`    | Command palette         |
88 | `⌘⇧a`    | Add project folder      |
89 | ---      | ---                     |
90 | `⌘n`     | New file                |
91 | `⌘⇧n`    | New window              |
92 | ---      | ---                     |
93 | `⌘f`     | Find in file            |
94 | `⌘⇧f`    | Find in project         |
95 | `⌘t`     | Search files in project |
96 {: .-shortcuts}
97
98 ## Notes
99
100 ### ⌘
101
102 - For Windows and Linux, `⌘` is the `Control` key.
103 - For macOS, it's the `Command` key.
104
105 ### ⌥
106
107 - For Windows and Linux, `⌥` is the `Alt` key.
108 - For macOS, it's the `Option` key.