Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

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

share|improve this answer
    
Thank you very much! This is going to save me a lot of time. –  Lucy Dec 20 '12 at 12:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.