开发者

Easily select default usings for project namespaces and subamespaces

开发者 https://www.devze.com 2022-12-10 08:51 出处:网络
Is there an easy way in Visual Studio to assign default usings when i make a new file in a certain (sub)namespace in my 开发者_JS百科project?You can create a new template with File -> Export Template.

Is there an easy way in Visual Studio to assign default usings when i make a new file in a certain (sub)namespace in my 开发者_JS百科project?


You can create a new template with File -> Export Template... -> Item Template, but to be honest I never bother - there is a "Remove Unused Usings" option for cleaning down, and Ctrl+. for adding them...


Modify the template file in zip files under "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\"

0

精彩评论

暂无评论...
验证码 换一张
取 消