skip to Main Content

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

2

Answers


  1. As of my last knowledge update in January 2022, Visual Studio Code (VS Code) does not have a built-in feature equivalent to SlickEdit’s selective display. However, VS Code is a highly extensible editor, and many features can be added through extensions.

    If you are looking for a specific feature like selective display, you might want to check the VS Code marketplace for extensions that provide similar functionality. The availability of extensions can change over time as developers create new ones or update existing ones.

    To explore extensions in Visual Studio Code:

    Open VS Code.
    Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing Ctrl+Shift+X.
    In the Extensions view, you can search for extensions related to code folding, outlining, or selective display.
    Keep in mind that the information may have changed after my last update, so it’s always a good idea to check the official VS Code marketplace or documentation for the latest features and extensions.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search