Reputation: 193
I am a new Code user but previously used SlickEdit
One Slickedit function that I used was the Selective Display function which allowed you to only see the lines that match a search (or alternatively hide matched lines)
Does Code have any equivalent function?
I know I can use Fold to hide procedure bodies but I haven't found anything like the SlickEdit function yet
Update: I have now created feature request https://github.com/microsoft/vscode/issues/200997 Please give it a thumbs up if you would like to see Selective Display function in vsCode
Upvotes: 0
Views: 221
Reputation: 50543
I don't think there's an exact-match feature.
As a workaround, you can use a Search Editor, expand the search options (three dot menu button to the right) and put the path to the file of interest in "files to include", and toggle context lines off.
Editing in the search editor won't reflect in the actual file though (but you can double-click a line to jump to the line in an editor tab for the actual file).
For negative matching / exclusion, see Regular expression to match a line that doesn't contain a word. TL;DR turn on regex mode and use the form ^((?!foo).)*$
.
If you want a dedicated feature, then you can raise a feature-request issue ticket. The asker has now create an issue ticket: Create a selective display facility equivant to slick edit selective display #200997. If you are reading and would like this feature, I suggest that you give that issue ticket a thumbs up to show support for it. You can also subscribe to it to get notified about discussion and progress. Please avoid making noisy comments there like ones that just consist of "+1" / "bump".
Upvotes: 1