You can use the Peek action to view lines surrounding the
find all results in the editor.
About this task
When performing a find all operation (Ctrl + Shift
+ A) in the editor, the results displayed only show lines
that match the search criteria, filtering out all unnecessary lines.
This can make it hard to determine which exact line you may be searching
for. To peek at lines surrounding a match from a find all operation:
Procedure
- In the editor's left vertical ruler, right-click on the
yellow arrow which indicates a match for the search criteria.
- From the pop-up menu, select Peek before and
after...
- In the Peek dialog, specify the number
of lines you want to peek at.
Note: It is only possible
to increase the number of lines being peeked at whether the peek level
was specified at the initial find all operation, or from a previous
peek operation
Results
You should then see the specified number of lines before and
after the match in the editor window. Note: You can also specify a
value for Number of lines to peek at before and after matches on
the Find All window to automatically see additional
lines surrounding all matches from the search criteria from the find
all operation.