skip to Main Content

If I use ctrl-t (symbol search), I get all symbols. This means my symbols and symbols of libraries I use.

Is there a way to restrict symbol search to only the symbols which are in my code (excluding symbols from libraries).

I use vscode for Go.

vscode-symbol-search-in-golang

In above screenshot I highlighted the single line which comes from my code.

If a filter for "only my code" is not possible, then it would be nice if my code would get higlighted by vscode.

Related issue: https://github.com/golang/go/issues/37236

2

Answers


  1. Enter the path of the libraries, in files to exclude.

    Login or Signup to reply.
  2. You can use vscode-search-everywhere

    Refer

    Extension Settings

    searchEverywhere.include: "**/*.{go,js,jsx,ts,tsx}"
    

    meaning: include all files with the above extentions

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