Last active
January 4, 2016 09:09
-
-
Save bartelink/8599967 to your computer and use it in GitHub Desktop.
Ugly hacky script to generate a VS Find in Files uber-Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TODO dig out of registry instead of cutting and pasting from VS! | |
$x="*.c;*.cpp;*.cxx;*.cc;*.tli;*.tlh;*.h;*.hh;*.hpp;*.hxx;*.hh;*.inl;*.rc;*.resx;*.idl;*.asm;*.inc;*.tlh;*.h;*.hh;*.hpp;*.hxx;*.hh;*.inl;*.rc;*.resx;*.idl;*.asm;*.inc;*.cs;*.resx;*.resw;*.xsd;*.wsdl;*.xaml;*.xml;*.htm;*.html;*.css;*.vb;*.resx;*.xsd;*.wsdl;*.htm;*.html;*.aspx;*.ascx;*.asmx;*.svc;*.asax;*.config;*.asp;*.asa;*.cshtml;*.vbhtml;*.css;*.xml;*.xml;*.xsl;*.xslt;*.xsd;*.dtd;*.srf;*.htm;*.html;*.xml;*.gif;*.jpg;*.png;*.css;*.disco;*.txt;*.json;*.vb;*.resx;*.xsd;*.wsdl;*.htm;*.html;*.aspx;*.ascx;*.asmx;*.svc;*.asax;*.config;*.asp;*.asa;*.cshtml;*.vbhtml;*.css;*.xml;*.cs;*.resx;*.resw;*.xsd;*.wsdl;*.xaml;*.xml;*.htm;*.html;*.css" | |
$x+=";*.fs;*.json;*.ts" | |
# strip *. | |
$all = $x.Split( ";") | % { $_.Replace("*.","") } | |
#xml fins too much junk in obj dirs | |
$all = $all | ? { $_ -ne "xml" } | |
$vsFifFilter = [string]::Join(";", ($all | sort | unique | %{ "*."+$_ })) | |
$grepwinFilter = [string]::Join("|", ($all | sort | unique | %{ "("+$_+")" })) | |
# $vsFifFilter | clip | |
# $grepwinFilter | clip |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be nice to have lots of JS tooling extensions in too (coffee for a start)
And then it would be nice if they could debug find in files and allow you to omit bin and obj dirs etc.
http://stackoverflow.com/questions/6357067/alternatives-for-find-in-files
Result:
And