Notepad++ ignoring search results on same line

15

When you perform a search of a bunch of files in Notepad++, if it finds the text you were looking for in the same line multiple times, the search results window will display the same line multiple times, with each different instance highlighted.

Is there a way to toggle that functionality? Sometimes it is nice to have, but other times i would like it turned off.

David A.

Posted 2010-08-26T14:32:24.217

Reputation: 407

Answers

16

To answer the question there is not that functionality, but it would be a good idea. Feature requests for Notepad++ can be submitted through IdeaTorrent.

A work around is to use a regular expression that swallows the rest of the line. For example is you want to find lines containing abc you can search for '.*abc.*' under regular expressions and that will find every line with abc but will only list it once.

Andrew Redd

Posted 2010-08-26T14:32:24.217

Reputation: 1 294