Community
    • Login

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

    Scheduled Pinned Locked Moved General Discussion
    7 Posts 5 Posters 14.8k 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.
    • AmitA
      Amit
      last edited by

      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.

      PeterJonesP Khatri VinayK 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Amit
        last edited by

        @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.

        AmitA 1 Reply Last reply Reply Quote 1
        • AmitA
          Amit @PeterJones
          last edited by

          @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.)

          Michael VincentM astrosofistaA 2 Replies Last reply Reply Quote 0
          • Michael VincentM
            Michael Vincent @Amit
            last edited by

            @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
            • astrosofistaA
              astrosofista @Amit
              last edited by

              @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!

              AmitA 1 Reply Last reply Reply Quote 4
              • Khatri VinayK
                Khatri Vinay @Amit
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote -1
                • AmitA
                  Amit @astrosofista
                  last edited by

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

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