How to select non contiguous lines of code in Notepad++

notepadtext editing

What key enables the selection of non-consecutive lines in notepad++ ?

I have some Matlab code I have edited with notepad++. I would like to select distinct (non consecutive) blocks of code in order to perform Find&Replace within my selected code only.

This wouldn't be a problem if this was to be done in one continous block of code, but how can I select little blocks from all over the script ? In Word or Excel, the Ctrl key would do the trick; what's its notepad++ equivalent ?

Thank you for any help.

Best Answer

from the help:

If a stream area is selected, it is possible to add another, disjoint area by Ctrl-clicking its start point and moving the mouse to the end point. More than one extra selection can be added this way. (Multi-Editing should be enabled in Preferences)

Source: http://npp-community.tuxfamily.org/documentation/selecting-text

tl;dr - Settings -> Preferences -> Editing -> Multi-Editing Settings -> Enable, then Ctrl-Click for each section