• Login
Community
  • Login

How to use Multiple Cursors (aka Multi-Editing) using Keyboard?

Scheduled Pinned Locked Moved General Discussion
7 Posts 5 Posters 15.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Amit
    last edited by Mar 24, 2022, 3:33 PM

    Is it possible to use Multiple Cursors (aka Multi-editing in Notepad++ Preferences > Editing) using Keyboard shortcut?

    For example, I can do Column editing mode using ALT + Shift + Up/Down arrows.

    Is there a way to do the same somehow for Multi Cursors? I can use Mouse click and it works find, but was wondering if there is a faster way to do so?

    Thank you.

    P K 2 Replies Last reply Mar 24, 2022, 4:03 PM Reply Quote 0
    • P
      PeterJones @Amit
      last edited by Mar 24, 2022, 4:03 PM

      @amit ,

      Not that I am aware of.

      I am not sure how that would even work.

      With column-mode, you are arrowing through the box region you want to select, so you’re always “inside” the selection.

      With multi-select Ctrl+Click, you are literally clicking at multiple locations; I am not sure how you would be able to tell Notepad++ “I want to click HERE, THERE, and ANOTEHR”, with only using the keyboard.

      A 1 Reply Last reply Mar 24, 2022, 4:11 PM Reply Quote 1
      • A
        Amit @PeterJones
        last edited by Mar 24, 2022, 4:11 PM

        @peterjones, here is one test case that I was trying. Let’s say, I want to add <li> tag to the following lines. If I use Column edit mode, I cannot effectively go to end of the line to add closing tag </li>. However, Multi-editing mode allows me to go to end of word using Ctrl + Right Arrow. However, I have to select the beginning of each line with Ctrl + Mouse Click, which I prefer to use keyboard shortcut.

        I understand, there are other ways to do the same, I was just wondering if there is a way to do it through multi-editing feature.

        <li>monday</li>
        <li>tuesday</li>
        <li>wednesday</li>
        <li>thursday</li>
        

        Thanks.

        (note: this is a simplified example.)

        M A 2 Replies Last reply Mar 24, 2022, 6:18 PM Reply Quote 0
        • M
          Michael Vincent @Amit
          last edited by Mar 24, 2022, 6:18 PM

          @amit said in How to use Multiple Cursors (aka Multi-Editing) using Keyboard?:

          However, Multi-editing mode allows me to go to end of word using Ctrl + Right Arrow. However, I have to select the beginning of each line with Ctrl + Mouse Click, which I prefer to use keyboard shortcut.

          I think you want to install the “BetterMultiSelection” plugin based on what I think you’re asking.

          Cheers.

          1 Reply Last reply Reply Quote 5
          • A
            astrosofista @Amit
            last edited by Mar 24, 2022, 7:20 PM

            @amit

            @Michael-Vincent is right, that is easily doable with the BetterMultiSelection plugin. After making the multiselection at the start of the lines and typing <li>, just press the end key to move to the end of the lines. Then you can type the ending tags.

            Here are links for more advanced examples involving the BetterMultiSelection plugin:

            https://community.notepad-plus-plus.org/post/53667
            https://community.notepad-plus-plus.org/post/54925
            https://community.notepad-plus-plus.org/post/51906
            https://community.notepad-plus-plus.org/post/53168 (explanation)
            https://community.notepad-plus-plus.org/post/51915
            https://community.notepad-plus-plus.org/post/51786

            Take care!

            A 1 Reply Last reply Mar 25, 2022, 5:52 PM Reply Quote 4
            • K
              Khatri Vinay @Amit
              last edited by Mar 25, 2022, 8:36 AM

              This post is deleted!
              1 Reply Last reply Reply Quote -1
              • A
                Amit @astrosofista
                last edited by Mar 25, 2022, 5:52 PM

                @astrosofista @Michael-Vincent, thank you. I will look into this and will try it out. Appreciate it.

                1 Reply Last reply Reply Quote 1
                1 out of 7
                • First post
                  1/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors