-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-Edit How-to (v8.6 new feature) #14509
Comments
If we select something we don't want followed by stuff we want to keep in the multi-select, how do we remove the earlier selection from the multi-select? (#12530) If was not the last to be selected, then "Undo the Latest Added Multi-Select" wouldn't work. Apparently, this will be fixed in v8.6.1. |
I'm just a Notepad++ noob, |
Use empty noColumnToMultiSelect.xml config file: |
I don't want to download a non-official non-stable Notepad++ build. |
For the love of God, it's not non-official non-stable Notepad++ build, it's the tutorial to guide you for disabling this usable feature you don't like. |
For the love of God. It doesn't work on the default executable. |
@nr1995 As with any more complex new features implemented, there are some birth pains, but these should be addressed in a few upcoming versions. |
I don't want to cause any trouble now because the function itself is quite useful, but my muscle memory is also quite strained. Wouldn't it be possible to deactivate and reactivate the function via a shortcut or menu entry "on deman" without having to restart N++? The XML file is a good work-around, but if I ever need the function, I'd have to close N++ (with lots of open files). But sure, let's wait for v8.6.2 first. |
Notepad++ v8.6 introduced a new feature called Multi-Edit. This feature allows users to edit text at multiple positions simultaneously.
Here's the demo of the feature published on the v8.6 release announce:
Many users have requested a tutorial. Here is a step-by-step guide that shows you how to transform from
# var1, var2, object1, object2, object3, flag1, flag2
to
Once you understand how it work this part, the remain demo should be intuitive & easy to follow.
Step 1
Copy the line from
var1
toflag2
and paste it, and add another comma at the end.Step 2
Select the first
,
ofvar1,
Step 3
Run Edit->Multi-Select Next->Match Case Only command 6 times.
Note: You can always run this command via the menu, but it'll be much easier to use the shortcut (I assigned Ctlr-E to it). You can assign any available shortcut to Multi-Select Next->Match Case Only command via Shortcut Mapper.
Step 4
Type 2 DELETE and 1 ENTER, then ArrowUp once to move all carets up 1 line
Step 5
Type
obj.
Step 6
Ctrl-ArrowRight to move the carets to the end of the words
Step 7
Type
= param[""]
Step 8
Put your caret after
obj.
of the 1st line, the Alt-Shift-ArrowDown to the last line(Or you can use Ctrl-ArrowLeft to move carets after
obj.
column )Step 9
Ctrl-Shift-ArrowRight to multi-select the words, then copy them (Ctrl-C)
Step 10
Move all carets to right by using ArrowRight to between
""
, then paste (Ctrl-V)The text was updated successfully, but these errors were encountered: