Jecho

导航

Modify file extensions filters list in Add Existing Item dialog

http://social.msdn.microsoft.com/Forums/zh-CN/d711a83c-4729-49ff-8056-be6cc6575560/dsl-tools-extension-of-the-package-not-in-the-add-existing-item-filter-box?forum=vsx

You could easily add a new filter that can be used in different places such as "Add Existing Item", "Open Item", "Find Files" etc dialog boxes by tweaking the registry.

 

For every Project registered in VS, there is a GUID under HKLM\Software\Microsoft\VisualStudio\<Version>\Projects\<YourCustomProjectGUID>. Under this GUID, you need to add the key "Filters\<any id e.g. language name>" and define value such as default "Resource string ID or String value of the filter" and control where this filter is applied and in which order by using different values in your filter key. See 

 

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\Filters\/1

for an example filter used by standard VC projects.

 

You can use SortPriority to configure the order in which the filter is apears.

posted on 2014-06-24 11:22  Jecho  阅读(122)  评论(0)    收藏  举报