Visual Studio Code Shortcuts
17 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which keyboard shortcut is used to move the active editor group?

  • Ctrl+K Ctrl+I
  • Ctrl+K V
  • Ctrl+K Ctrl+X
  • Ctrl+K+/→ (correct)
  • What is the keyboard shortcut to toggle the Sidebar visibility?

  • Ctrl+K Ctrl+I
  • Ctrl+K F
  • Ctrl+F4, Ctrl+W
  • Ctrl+\ (correct)
  • How can you copy the path of the active file?

  • Ctrl+K Ctrl+V
  • Ctrl+C
  • Ctrl+K M
  • Ctrl+K Ctrl+C (correct)
  • Which shortcut is used to perform column (box) selection?

    <p>Ctrl+1/↓</p> Signup and view all the answers

    How can you toggle the integrated terminal?

    <p>Ctrl+`</p> Signup and view all the answers

    Which shortcut is used to comment/uncomment a line of code?

    <p>Ctrl+K Ctrl+U</p> Signup and view all the answers

    How can you insert a cursor above the selected line?

    <p>Shift+Alt+I</p> Signup and view all the answers

    Which shortcut is used to trigger parameter hints?

    <p>Ctrl+Shift+J</p> Signup and view all the answers

    How can you select all occurrences of the current word?

    <p>Ctrl+Shift+G</p> Signup and view all the answers

    How can you navigate to the next error or warning?

    <p>F3 / Shift+F3</p> Signup and view all the answers

    Which shortcut is used to insert a cursor at the end of each selected line?

    <p>Ctrl+K R</p> Signup and view all the answers

    How do you add a line comment in Visual Studio Code?

    <p>Ctrl+K Ctrl+C</p> Signup and view all the answers

    Which shortcut key combination allows you to move the cursor to the beginning of a file?

    <p>Ctrl+Home</p> Signup and view all the answers

    How do you toggle word wrap in Visual Studio Code?

    <p>Alt+Z</p> Signup and view all the answers

    What is the shortcut to select the current line and all occurrences of the same text in Visual Studio Code?

    <p>Shift+Alt+A</p> Signup and view all the answers

    Which shortcut inserts a line below the current line?

    <p>Ctrl+Shift+Enter</p> Signup and view all the answers

    How do you select a column/box of text in Visual Studio Code?

    <p>Shift+Alt+Arrow keys</p> Signup and view all the answers

    Study Notes

    Basic Editing

    • Cut line: Ctrl+X
    • Copy line: Ctrl+C
    • Move line up/down: Alt+↑/↓
    • Copy line up/down: Ctrl+Shift+Alt+↑/↓
    • Delete line: Ctrl+Shift+K
    • Insert line below: Ctrl+Enter
    • Insert line above: Ctrl+Shift+Enter
    • Jump to matching bracket: Ctrl+Shift+\
    • Indent/outdent line: Ctrl+]
    • Go to beginning/end of line: Home/End
    • Go to beginning of file: Ctrl+Home
    • Go to end of file: Ctrl+End
    • Scroll line up/down: Ctrl+↑/↓
    • Scroll page up/down: Ctrl+PgUp/PgDn

    File Management

    • New file: Ctrl+N
    • Open file: Ctrl+O
    • Save file: Ctrl+S
    • Save as: Ctrl+Shift+S
    • Close file: Ctrl+K Ctrl+W
    • Close all files: Ctrl+K Ctrl+X
    • Reopen closed file: Ctrl+Shift+T
    • Copy file path: Ctrl+K Ctrl+R
    • Reveal file in Explorer: Ctrl+K Ctrl+O
    • Go to definition: F12
    • Open definition to the side: F9
    • Go to line: Ctrl+G
    • Go to file: Ctrl+P
    • Go to symbol: Ctrl+Shift+O
    • Toggle block comment: Shift+Alt+A
    • Toggle word wrap: Alt+Z

    Search and Replace

    • Find: Ctrl+F
    • Find and replace: Ctrl+H
    • Find next: F3
    • Find previous: Shift+F3
    • Select all occurrences of Find match: Ctrl+Shift+L

    Debugging

    • Start debugging: F5
    • Stop debugging: Shift+F5
    • Step into: F11
    • Step out: Shift+F11
    • Step over: F10

    Multi-Cursor and Selection

    • Insert cursor: Ctrl+Alt+Click
    • Insert cursor above/below: Ctrl+U
    • Insert cursor at end of each line: Ctrl+Shift+L
    • Select all occurrences of current selection: Ctrl+Shift+L
    • Select current line: Ctrl+I

    Column (Box) Selection

    • Column selection: Ctrl+Shift+Alt+Mouse
    • Column selection page up/down: Ctrl+Shift+Alt+PgUp/PgDn

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    Test your knowledge of Visual Studio Code shortcuts for navigating, searching, and editing code. Identify the correct shortcut keys for common actions like search and replace, toggling tab focus, and using multi-cursor selections.

    More Like This

    Visual Studio Code Shortcuts
    10 questions
    Introduction to Code Quality in VS Code
    25 questions
    JavaScript and Code Editors Quiz
    29 questions
    Use Quizgecko on...
    Browser
    Browser