Topic 2D: VS Code: Multiple Cursors & Selections

Visual Studio Code Tutorial

Delve into the intricacies of Visual Studio Code with our in-depth tutorial. Explore multiple cursors, selections, and their utilization in different operating systems.

Key Insights

  • The Visual Studio Code tutorial covers multiple cursors and selections.
  • For placing multiple cursors, use Option-Click on a Mac or Alt-Click on Windows.
  • For making multiple discontinuous selections, hold Option on Mac or Alt on Windows while dragging.
  • Single discontinuous selection across multiple lines is made possible by holding Option-Shift on Mac or Alt-Shift on Windows while dragging.
  • Multi-line cursors can be created using Cmd-Option on Mac or Ctrl-Alt on Windows, followed by the Up or Down Arrow keys.
  • Multiple selections or cursors allow edits such as delete, type, paste, etc. Press Escape (esc) to return to one cursor.

This exercise is excerpted from Noble Desktop’s front-end web development (Visual Studio Code) training materials and is compatible with updates through 2022. To continue learning web development with hands-on training, check out our coding bootcamps in NYC and live online.

Multi-Cursor & Selection

  • Multiple Cursors

    Option-Click (Mac) or Alt-Click (Windows) places cursors anywhere.

  • Multi-Line Cursor

    Cmd-Option (Mac) or Ctrl-Alt (Windows) + Up/Down Arrow.

  • Discontinuous Selections

    Hold Option (Mac) or Alt (Windows) while dragging.

  • Return to Single Cursor

    Press Escape (esc) at any time.

Full-Stack Web Development Certificate: Live & Hands-on, In NYC or Online, 0% Financing, 1-on-1 Mentoring, Free Retake, Job Prep. Named a Top Bootcamp by Forbes, Fortune, & Time Out. Noble Desktop. Learn More.

Multiple Cursors & Selections

  • Place multiple cursors: Option–Click (Mac) or ALT–Click (Windows)
  • Multiple selections (discontinuous): Hold Option (Mac) or ALT (Windows) while dragging.
  • To make a single discontinuous selection area across multiple lines: Hold Option–Shift (Mac) or ALT–Shift (Windows) while dragging.
  • Create a multi-line cursor: Hold Cmd–Option (Mac) or CTRL–ALT (Windows) and then hit the Up or Down Arrow keys.
  • If you have multiple selections or cursors, you can make edits: delete, type, paste, etc. Press Escape (esc) to return to one cursor.

Learn more in these courses

How to Learn Coding

Master coding with hands-on training. Learning how to code in JavaScript, Python, and other popular languages can pave the way to a job in tech such as web development, data science & analytics, or software engineering.

Yelp Facebook LinkedIn YouTube Twitter Instagram