Easily select default usings for project namespaces and subamespaces
-
16-09-2019 - |
Question
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 project?
Solution
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...
OTHER TIPS
Modify the template file in zip files under "c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow