Search code examples
sublimetext3sublimetext

Sublime text 3. How to edit multiple lines?


I was using Notepad++ and now I want to use the same cool features in Sublime but I don't know how. I want to edit multiple lines at the same time like this:

But I don't want to Ctrl+Click at each line for this. I want to click at first line and click at last line for one vertical line.

How I can do this?


Solution

  • Thank you for all answers! I found it! It calls "Column selection (for Sublime)" and "Column Mode Editing (for Notepad++)" https://www.sublimetext.com/docs/3/column_selection.html

    Using the Keyboard:

    Mac

    • Ctrl+Shift+⬆
    • Ctrl+Shift+⬇

    Windows

    • Ctrl+Alt+⬆
    • Ctrl+Alt+⬇

    Linux

    • Alt+Shift+⬆
    • Alt+Shift+⬇