开发者

Easily select default usings for project namespaces and subamespaces

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜