Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Undo Extra Multi Cursors in VSCode

    Ahmad Awais ⚡Ahmad Awais ⚡
    vscodeVS Code

    Sometimes while creating multi-cursors you end up creating one more a couple more multi-cursors that aren't needed. Instead of starting from scratch you can undo these extra cursors. Learn exactly that in this lesson.

    Pre-Requisite: All the keyboard shortcuts shown in the video are for macOS on VSCode with the "Sublime Text Keymap" Extension installed. You can either use my setup or search for what these shortcuts look like on your installation by clicking the gear icon (left-bottom) and selecting Keyboard Shortcuts (and then search for the required shortcut).



    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson




    Ahmad Awais: A couple of years ago, just like you, I was trying to learn all these power user workflows. Today is your lucky day because I am going to teach you how to deal with lines, how to juggle with words, and how to do those multi-cursors thing, if you know what I mean.

    Anyway, before we start, I need to tell you that I am using MacOS. When I say Command, that should be Control on Windows or Linux or other OS. Similarly, when I say Option, you should know that I mean Alt on other OS.

    The last one here is how to undo the last cursor. Imagine you wanted to change these colors. You press Command and Alt, and then down, down, down. There is this extra cursor that you didn't need. Press Command U, and it will undo the last cursor action. Command U, Command U.

    Similarly, if you were going up -- din, din, din, din -- Command U, Command U.

    Command U will undo the last action of your cursor. It's also true for your mouse and keypad. Click here, select Command and Shift, and then drag it out here. We didn't need this last one, so I'm going to press Command U, and there, it's gone