How to use Multiple Cursors (aka Multi-Editing) using Keyboard?
-
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.
-
@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.
-
@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 usingCtrl + Right Arrow. However, I have to select the beginning of each line withCtrl + 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.)
-
@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.
-
@Michael-Vincent is right, that is easily doable with the
BetterMultiSelectionplugin. After making the multiselection at the start of the lines and typing<li>, just press theendkey to move to the end of the lines. Then you can type the ending tags.Here are links for more advanced examples involving the
BetterMultiSelectionplugin: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/51786Take care!
-
This post is deleted! -
@astrosofista @Michael-Vincent, thank you. I will look into this and will try it out. Appreciate it.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login