Excluding specific files from Visual Studio search

前端 未结 6 945
一整个雨季
一整个雨季 2021-02-01 00:15

Is it possible to exclude certain files from search in Visual Studio.

For example jquery.js is almost always polluting my search results with half result coming from tha

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 00:41

    It's not particularly elegant - I'd be reluctant to call it a solution to the question - but if you can have Visual Studio Code running side-by-side with VS201x, its Find and Replace feature is pretty sophisticated. If you're using Git for source control, it will exclude any files or folders found in .gitignore from its search results - this is great when used in conjunction with tools like LibMan. Failing that, you can always manually add files / folders to its "files to exclude" option when searching.

提交回复
热议问题