VSCode Shortcuts
- Interactive Playground
- Box Selection
Shift + Arrow– KeyboardShift + Alt + Mouse– Mouse
- Copy/Move/Del Line
Shift + Alt + Arrow– CopyAlt + Arrow– MoveCtrl + Shift + K– Delete
- IntelliSense
Ctrl + Space– Conflict with Terminus- Now set Terminus to
Ctrl + F12
- Now set Terminus to
- Multi-Cursor
- Add Cursor
Alt + MouseCtrl + Alt + Arrow
- Replace
F2Ctrl + Shift + L
- Add Cursor
- Refactor
F2
- Formatting
- Global
Shift + Alt + F
- Selection
Ctrl + K Ctrl + F
- Global
- Fold
Ctrl + Shift + [– FoldCtrl + Shift + ]– Unfold
- Indent
Ctrl + ] / Ctrl + [– Indent/outdent line
- Box Selection
- Shortcut
Ctrl + \– Split- Delete Line –
Ctrl + Shift + K
-
Debugging in Visual Studio Code -
Ctrl+Shift+D- Open Debug Sidebar -F5- Run Debug -F9- Breakpoints - Actions - Continue / PauseF5- Step OverF10- Step IntoF11- Step OutShift+F11- RestartCtrl+Shift+F5- StopShift+F5 - [[Cheatsheet]]
- [[Linux]]
- https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf
- Windows
- https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
- Find and Replace
Ctrl + H– ReplaceAlt+R– Regex- [[RegEx]] #TODO-skill-must
- https://regex101.com/
- Best Way to Learn: With Examples
- Whole Lines of Text
^.*John.*$^– Line Begin$– Line End.–- https://www.regular-expressions.info/completelines.html
- Digits, Comma, Semicolon
^[0-9,;]+$- Starting with the carat
^indicates(means) a beginning of line. - Dollar
$indicates the end of the line.\$- To match dollar
[indicates a character set0-9indicates characters0through9- Comma
,indicates comma - Semicolon indicates a
;. - Closing
]indicates the end of the character set. - Plus
+indicates that one or more of the “previous item” must be present.- You must have one or more of the characters in the previously declared character set.
- https://stackoverflow.com/questions/5327206/regex-match-digits-comma-and-semicolon/5327243
- Starting with the carat
- pandoc
- https://pandoc.org/filters.html#a-simple-example
perl -pe 's/^##+ (.*)$/\*\1\*/' source.txt
- https://pandoc.org/filters.html#a-simple-example
- Whole Lines of Text
- 只Match一部分
- 初始想法:
\n-=>\n\n-
- 初始想法:
- [[RegEx]] #TODO-skill-must
Ctrl+Enter– ReplaceCtrl+Alt+Enter– Replace AllAlt+W– Match Whole WordAlt+C– Match CaseAlt+P– Preserve Case- The Preserve case option determines if the matched text’s case is preserved or not when replacing it with the replacement string.
- https://stackoverflow.com/questions/15531625/sublime-text-2-find-and-replace-case-sensitive-vs-preserve-case/15536716
Ctrl + F– Find
- Open
Ctrl + R- Open RecentCtrl + O– Open FileCtrl+K Ctrl+O– Open FolderCtrl+K F– Close Folder & Return to Start Screen
- Close Tabs
Ctrl+F4– Close Current TabCtrl+K W– Close AllCtrl+K U– Close Saved
- Jump
Ctrl+G– Jump to Line:526
Ctrl+Shift+O– Jump to Symbol Definition
Ctrl+K M– Select Language Mode (e.g. [[C++]])Ctrl+R– Reload WindowCtrl+Q– QuitCtrl+V– Open Markdown PreviewCtrl+Shift+'– Add Extra Terminal- Code Navigation and Refactoring
- [[Linux]]