Ignore Heroicons in VS Code
Phoenix 1.7 changed the way Heroicons are included in your project. 1.7 now vendors the SVG files in assets/vendor/heroicons
. Visual Studio Code will index these files for search by default, polluting your search results and the Go To File (⌘ + P) functionality.
A very simple way to prevent this is to create a custom per-project search exclude. In .vscode/settings.json
(create if it does not exist) add the following setting:
{
"search.exclude": {
"**/heroicons": true
}
}
Heroicons will now be excluded from all search or "go to" operations.