OSDN Git Service

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