-
Notifications
You must be signed in to change notification settings - Fork 9
/
basic_shortcuts.txt
200 lines (132 loc) · 4.2 KB
/
basic_shortcuts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
ATOM
command n
creates a new tab in atom
command w
closes current tab (will prompt you to save if you haven't done so)
control tab
switches between open tabs
command number
goes immediately to that tab, 1 for left most tab, 2 for second left most, etc
command shift ] or command shift [
switches between open tabs
command } or command {
tabs the line or highlighted lines to the right or left
command z
undo
command y
redo
shift arrow keys
highlights text
shift command right
highlights all text from cursor to end of line
shift command left
highlights all text from cursor to beginning of line
command c
copies highlighted text
command x
cuts (deletes) highlighted text and places it into the clipboard
command v
pastes highlighted text at the cursor
control a
moves your cursor to the beginning of the line
control e
moves your cursor to the end of the line you're on
command arrow keys
moves your cursor to the beginning or end of a line
option left
moves your cursor to the beginning of the previous word
option right
moves your cursor to the end of the next word
fn up arrow
scroll up one page
fn down arrow
scroll down one page
fn left arrow
scroll to the beginning of a document
fn right arrow
scroll to the end of a document
control k
deletes everything to the right of the cursor
command d
finds the next place you used the word your cursor is currently on.
repeatedly hitting it will highlight additional places the word was used
*very helpful if you need to find all the places you used a particular word
command /
comments out selected lines (adds a # to beginning of each line)
command \
opens/closes the sidebar
command k arrow
splits your screen
command + or command -
zooms in or out of your screen
command f
opens a window so you can find words or phrases
*esc will close the window
command s
saves file
command ,
opens settings
command option b
runs seeing is believing
command option v
removes seeing is believing code
control d or fn delete
deletes one space to the right
ITERM
touch <filename>
creates a new file
*don't forget to specify what type of file (ex: .rb)
*use underscores to define spaces
mkdir <name>
creates a new directory
l or ls
lists the files in your current directory
ls -la
lists all files(including invisible ones) in your current directory
cd ..
takes you back one directory
cd <filename>
takes you to that file
cd ~/
takes you to your home directory
atom .
opens all the files in the current directory in atom
atom <filename>
opens that file in atom
ruby <filename>
runs that file
pry
gets you into a pry session
exit
gets you out of a pry session
control d
gets you out of a pry session or a loop
pwd
prints what directory you're in
clear
clears your screen
command r
clears your screen
GENERAL OS X SHORTCUTS
command shift 3
captures the screen to a file on the desktop
command shift control 3
captures the screen to the clipboard
command shift 4
captures a selection of the screen to a file on the desktop or hit space bar to capture an entire window
commmand shift control 4
captures a selection of the screen to the clipboard or hit space bar to capture an entire window
command tab
move forward to next most recently used application in list of open applications
command shift tab
move backwards through a list of open applications sorted by most recently used
command f1
toggle mirror displays when external display is attached
command `
activate next open window in active application
command shift `
activate previous open window in active application
command m
minimizes active window to the dock
command w
closes active window