Link Search Menu Expand Document

VSCode Shortcuts

  • Interactive Playground
    • Box Selection
      • Shift + Arrow – Keyboard
      • Shift + Alt + Mouse – Mouse
    • Copy/Move/Del Line
      • Shift + Alt + Arrow – Copy
      • Alt + Arrow – Move
      • Ctrl + Shift + K – Delete
    • IntelliSense
      • Ctrl + Space – Conflict with Terminus
        • Now set Terminus to Ctrl + F12
    • Multi-Cursor
      • Add Cursor
        • Alt + Mouse
        • Ctrl + Alt + Arrow
      • Replace
        • F2
        • Ctrl + Shift + L
    • Refactor
      • F2
    • Formatting
      • Global
        • Shift + Alt + F
      • Selection
        • Ctrl + K Ctrl + F
    • Fold
      • Ctrl + Shift + [ – Fold
      • Ctrl + Shift + ] – Unfold
    • Indent
      • Ctrl + ] / Ctrl + [ – Indent/outdent line
  • 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 / Pause F5 - Step Over F10 - Step Into F11 - Step Out Shift+F11 - Restart Ctrl+Shift+F5 - Stop Shift+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 – Replace
        • Alt+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 set
                  • 0-9 indicates characters 0 through 9
                  • 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
              • pandoc
                • https://pandoc.org/filters.html#a-simple-example
                  • perl -pe 's/^##+ (.*)$/\*\1\*/' source.txt
          • 只Match一部分
            • 初始想法:\n- => \n\n-
        • Ctrl+Enter – Replace
        • Ctrl+Alt+Enter – Replace All
        • Alt+W – Match Whole Word
        • Alt+C – Match Case
        • Alt+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 Recent
      • Ctrl + O – Open File
      • Ctrl+K Ctrl+O – Open Folder
      • Ctrl+K F – Close Folder & Return to Start Screen
    • Close Tabs
      • Ctrl+F4 – Close Current Tab
      • Ctrl+K W – Close All
      • Ctrl+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 Window
    • Ctrl+Q – Quit
    • Ctrl+V – Open Markdown Preview
    • Ctrl+Shift+' – Add Extra Terminal
    • Code Navigation and Refactoring