-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvscode_cheatsheet.tex
305 lines (266 loc) · 12.1 KB
/
vscode_cheatsheet.tex
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MatPlotLib and Random Cheat Sheet
%
% Edited by Michelle Cristina de Sousa Baltazar
%
% http://matplotlib.org/api/pyplot_summary.html
% http://matplotlib.org/users/pyplot_tutorial.html
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage[landscape]{geometry}
\usepackage{url}
\usepackage{multicol}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\usepackage{amsmath,amssymb}
\usepackage{colortbl}
\usepackage{xcolor}
\usepackage{mathtools}
\usepackage{amsmath,amssymb}
\usepackage{enumitem}
\usepackage{vwcol}
\usepackage{tipa}
\usepackage[scaled]{helvet}
\renewcommand\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
\title{VS Code Keybindings}
\usepackage[brazilian]{babel}
\usepackage[utf8]{inputenc}
\advance\topmargin-.8in
\advance\textheight3in
\advance\textwidth3in
\advance\oddsidemargin-1.5in
\advance\evensidemargin-1.5in
\parindent0pt
\parskip2pt
\newcommand{\hr}{\centerline{\rule{3.5in}{1pt}}}
%\colorbox[HTML]{e4e4e4}{\makebox[\textwidth-2\fboxsep][l]{texto}
\begin{document}
\begin{center}{\huge{\textbf{VS Code C/C++ Keybindings}}}\\
{\large by Dani Sanz}
\end{center}
\begin{multicols*}{3}
\tikzstyle{mybox} = [draw=black, fill=white, very thick,
rectangle, rounded corners, inner sep=10pt, inner ysep=10pt]
\tikzstyle{fancytitle} =[fill=black, text=white, font=\bfseries]
%------------ GENERAL ---------------
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{0.3\textwidth}
\textit{Key naming:} \\
\textbf{\textit{Ct}} (Control), \textbf{\textit{Sh}} (Shift), \textbf{\textit{Al}} (Alt), \textbf{\textit{En}} (Enter),
\textbf{\textit{Bs}} (Back space), \textbf{\textit{Su}}, (Supr), \textbf{\textit{<a>}},\textbf{\textit{<u,d,l,r>}} (Arrows),
\textbf{\textit{Pag}} (Page Up/Down) \\
%TWO COLUMNS:
% \begin{vwcol}[widths={0.5,0.5},
% sep=.2cm, rule=0pt,indent=1em]
% \begin{tabular}{ll}
% \hline
% \textbf{\textit{Ct}} & Control \\ \hline
% \textbf{\textit{Sh}} & Shift \\ \hline
% \textbf{\textit{Al}} & Alt \\ \hline
% \textbf{\textit{En}} & Enter \\ \hline
% \end{tabular}
% \begin{tabular}{ll}
% \hline
% \textbf{\textit{Bs}} & BackSpace \\ \hline
% \textbf{\textit{Su}} & Supr \\ \hline
% \textbf{\textit{<a>}} & Arrows \\ \hline
% \textbf{\textit{<u,d,l,r>}} & Arrows \\ \hline
% \end{tabular}
% \end{vwcol}
\begin{center}
\begin{tabular}{ll}
\hline
\textbf{\textit{En}} & Open file \\ \hline
\textbf{\textit{Ct}$+$\textit{En}} & Open to side editor \\ \hline
\textbf{\textit{Lft}/\textit{Rght}} & Exp./coll. folders, search results... \\ \hline
\textbf{\textit{Ct}$+$N} & New... \\
\quad \textit{terminal:} & \quad new tab \\
\quad \textit{file explor.:} & \quad new file \\
\quad & \quad $+$\textit{Sh}: new folder \\ \hline
\textbf{\textit{Ct}$+$M} & Maximize... \\
\quad \textit{panel:} & \quad toggle maximize panel \\
\quad \textit{editor:} & \quad toggle maximize editor \\
\quad \textit{file expl.:} & \quad collapse all folders \\ \hline
\textbf{\textit{Ct}$+$\textit{Pag}} & Focus next/previous tab/editor... \\
\quad \textit{editor:} & \quad within group \\
\quad & \quad \textit{+Al} other group \\ \hline
\textbf{\textit{Ct}$+$\textit{Sh}$+$\textit{Pag}} & Move tab/editor... \\
\quad \textit{editor:} & \quad within group \\
\quad & \quad \textit{+Al} to other group \\ \hline
\textbf{\textit{Al}$+$E X} & Split editor into new group \\ \hline
\textbf{\textit{Al}$+$E T} & Toggle editor horiz./vert. group split \\ \hline
\textbf{\textit{Ct}$+$W} & Close... \\
\quad \textit{editor:} & \quad current editor \\
\quad & \quad $+$\textit{Al}: current group \\
\quad & \quad $+$\textit{Sh}: others in group \\ \hline
\textbf{\textit{Ct}$+$-} & Toggle panel view \\ \hline
\textbf{\textit{Ct}$+$\textit{Sh}$+$-} & Toggle sidebar view \\ \hline
\end{tabular}
\end{center}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {General};
\end{tikzpicture}
%------------ EDITOR ---------------
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{0.3\textwidth}
\center
\begin{tabular}{ll}
\hline
\textbf{\textit{Ct}$+$E} & Focus on active editor \\ \hline
\textbf{\textit{Al}$+$C <u,d>} & Compare: Go to next/prev. change \\ \hline
\end{tabular}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {Editor};
\end{tikzpicture}
\columnbreak
\columnbreak
%------------ MENU, OPEN, FILE EXPLORER, COMMANDS... ---------------
\begin{tikzpicture}
\node [mybox] (box){
\begin{minipage}{0.3\textwidth}
\center
\begin{tabular}{ll}
\hline
\textbf{\textit{Ct}$+$O...} & Open/menu/command modifier key... \\
\quad \textbf{O} & \quad quick open... \\
\quad \textbf{C} & \quad Command palette... \\
\quad \textbf{R} & \quad Open recent... \\
\quad \textbf{R ($+$\textit{Sh})} & \quad Focus on recent file on history... \\
\quad \textbf{E} & \quad Focus on file explorer \\
\quad \textbf{E ($+$\textit{Sh})} & \quad Reveal current file in explorer (wrksp.) \\
\quad \textbf{W} & \quad Open workspace... \\
\quad \textbf{D} & \quad Open directory... \\
\quad \textbf{F} & \quad Open file... \\
\quad \textbf{N} & \quad Open active file in new window \\
\quad \textbf{N ($+$\textit{Sh})} & \quad Duplicate workspace in new window \\
\quad \textbf{\textit{Bs}/\textit{Su}} & \quad Close window \\ \hline
\end{tabular}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {Menu, open, file explorer, commands...};
\end{tikzpicture}
%------------ DEBUG ---------------
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{0.3\textwidth}
\center
\begin{tabular}{ll}
\hline
\textbf{\textit{Ct}$+$D...} & Adding breakpoints in editor... \\
\quad \textbf{B} & \quad Toggle breakpoint \\
\quad \textbf{C} & \quad Add conditional breakpoint \\
\quad \textbf{F} & \quad Add function breakpoint \\
\quad \textbf{T} & \quad Add tracepoint (logpoint) \\
\quad \textbf{E} & \quad Enable/Disable breakpoint \\
\quad \textbf{\textit{<u,d>}} & \quad Go to next/prev. breakpoint \\
\quad \textbf{H} & \quad Show debug hover \\ \hline
\textbf{\textit{Al}$+$D...} & Focus on ... \\
\quad \textbf{D} & \quad debug bar \\
\quad \textbf{B} & \quad breakpoints window \\
\quad \textbf{V} & \quad variables window \\
\quad \textbf{W} & \quad watch window \\
\quad \textbf{C} & \quad call stack window \\ \hline
Breakpoints view: & \\
\quad \textbf{\textit{Bs}/\textit{Su}} & \quad Remove breakpoint \\
\quad \textbf{\textit{Ct}$+$D E} & Enable/disable breakpoint \\
\quad \textbf{\textit{En}} & \quad Open breakpoint \\
\quad & \quad $+$\textit{Sh}: open to side \\
\quad \textbf{\textit{Ct}$+$D A} & \quad Enable all breakpoints \\
\quad \textbf{\textit{Ct}$+$\textit{Sh}$+$D A} & \quad Disable all breakpoints \\
\quad \textbf{\textit{Ct}$+$\textit{Su}/\textit{Bs}} & \quad Remove all breakpoints \\ \hline
\textbf{F7} & Run default task \\ \hline
\textbf{\textit{Sh}$+$F7} & Run non-default task (choose) \\ \hline
\textbf{\textit{Sh}$+$\textit{Al}$+$F5} & Choose debug config., start \\ \hline
\textbf{F5, F6, F10, F11} & Debugging keys \\ \hline
\end{tabular}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {Debug};
\end{tikzpicture}
%------------ PANELS: PROBLEMS, TERMINAL ---------------
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{0.3\textwidth}
\center
\begin{tabular}{ll}
\hline
\textbf{\textit{Ct}$+$P} & Focus on panel \\ \hline
\textbf{\textit{Ct}$+$\textit{Sh}$+$P} & Focus on problems panel \\ \hline
\textbf{\textit{Al}$+$E <u,d>} & Focus on next/previous problem \\ \hline
\textbf{\textit{Ct}$+$T} & Focus terminal \\ \hline
\textbf{\textit{Al}$+$T F} & Open terminal in file path \\ \hline
On terminal: & \\
\quad \textbf{\textit{Ct}$+$\textit{Sh}$+$C/X/V} & \quad copy/cut/paste text \\ \hline
\end{tabular}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {Panels: Problems, Terminal};
\end{tikzpicture}
%------------ SEARCH & REPLACE ---------------
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{0.3\textwidth}
\center
\begin{tabular}{ll}
\hline
\textbf{\textit{Ct}$+$F} & Focus on find widget or find next match \\ \hline
\textbf{\textit{Ct}$+$\textit{Al}$+$F} & Find previous match \\ \hline
\textbf{\textit{Al}$+$F A} & Select all find matches \\ \hline
\textbf{\textit{Ct}$+$R} & Focus on replace widget \\ \hline
\textbf{\textit{Ct}$+$\textit{Sh}$+$F} & Search on search panel \\ \hline
\textbf{\textit{Ct}$+$\textit{<u,d>}} & Focus on upper/lower search box \\ \hline
\textbf{\textit{Ct}$+$\textit{Sh}$+$R} & Replace on search panel \\ \hline
\textbf{\textit{Al}$+$F...} & Others... \\ \hline
\quad \textbf{E} & \quad Collapse search results \\ \hline
\quad \textbf{C} & \quad Toggle search/find case sensitive \\ \hline
\quad \textbf{R} & \quad Toggle search/find regex. \\ \hline
\quad \textbf{W} & \quad Toggle search/find whole word \\ \hline
\end{tabular}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {Search \& Replace};
\end{tikzpicture}
\columnbreak
%------------ CODE COMPLETION & NAVIGATION ---------------
\begin{tikzpicture}
\node [mybox] (box){%
\begin{minipage}{0.3\textwidth}
\center
\begin{tabular}{ll}
\hline
\textbf{\textit{Tab}} & Auto-commplete best suggestion \\ \hline
\textbf{\textit{Ct}$+$A F} & Go to symbol... \\
\quad & \quad in file... \\
\quad \textbf{$+$\textit{Sh}} & \quad in workspace... \\ \hline
\textbf{\textit{Ct}$+$A...} & Navigate... \\
\quad \textbf{\textit{<I,K>}} & \quad to next/previous symbol highlight \\
\quad \textbf{\textit{<J,L>}} & \quad cursor backwards/forwards \\
\quad \textbf{T} & \quad to last cursor location (toggle) \\
\quad \textbf{A} & \quad to line... \\ \hline
\textbf{\textit{Ct}$+$A P} & Peek... \\
\quad & \quad definition \\
\quad \textbf{$+$\textit{Sh}} & \quad declaration \\ \hline
\textbf{\textit{Ct}$+$A D} & Go to... \\
\quad & \quad definition \\
\quad $+$\textbf{\textit{Al}} & \quad definition (to side) \\
\quad $+$\textbf{\textit{Sh}} & \quad declaration \\ \hline
\textbf{\textit{Ct}$+$A S} & Trigger completion suggestion \\ \hline
\textbf{\textit{Ct}$+$A H} & Show hover \\ \hline
\textbf{\textit{Ct}$+$A B} & Focus on breadcrumbs \\ \hline
\end{tabular}
\end{minipage}
};
\node[fancytitle, right=10pt] at (box.north west) {Code completion \& navigation};
\end{tikzpicture}
\end{multicols*}
\end{document}
Contact GitHub API Training Shop Blog About
© 2016 GitHub, Inc. Terms Privacy Security Status Help