最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to ignore directories from a workspace symbol search in vscode - Stack Overflow

programmeradmin0浏览0评论

When searching for a symbol in VSCode across a JS project, it seems to return results from the node_modules:

How can I omit these?

I've tried adding node_module entries into files.exclude and search.exclude but that seems to have no effect

When searching for a symbol in VSCode across a JS project, it seems to return results from the node_modules:

How can I omit these?

I've tried adding node_module entries into files.exclude and search.exclude but that seems to have no effect

Share Improve this question asked Mar 27, 2018 at 13:37 John MikeJohn Mike 2,0954 gold badges22 silver badges29 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 5

That's not currently possible, but there is an open issue about it you can follow until solved.

I was suffering the same and decided to develop an extension for easy navigation among workspace files and symbols. Hope it helps somebody.

It is fully customizable so the user can easily decide which folders are included/excluded from the currently opened workspace/project.

https://marketplace.visualstudio./items?itemName=kbysiec.vscode-search-everywhere

Ignore folders in a certain workspace, you can go to:

AppMenu > Preferences > Workspace Settings

Ignore in all your workspaces, go to:

AppMenu > Preferences > User Settings

and add the following to your configuration:

 "search.excludeFolders": [
            "node_modules",
            ".git",
            ...
        ],
发布评论

评论列表(0)

  1. 暂无评论