C# tutorials, Sql server tutorials, ASP.Net tutorials, C sharp tutorials,dot net tutorials, .Net tutorials, MVC tutorials, Javascript tutorials, C# for beginners,Jquery tutorials,Sql for beginners, Visual studio tutorials, asp.net for beginners, ADO.Net tutorials, .net for beginners, MVC for beginners, c sharp for beginners, WCF tutorials, Bootstarp tutorials, Interview questions and answers, .net basics, Technical interview question for BE- CSE,ECE and IT (B.Tech), dot net and Grid view basics
Showing posts with label Visual studio. Show all posts
Showing posts with label Visual studio. Show all posts
Wednesday, 24 August 2016
Visual Studio- Remove unused namespaces
Step 1: Right click anywhere in Program
Step2 : Hover the Organize Usings
1. Remove unused Using => It's removed unused namespaces
2. Sort Using => It's sorted namespaces by alphabetical
3. Remove and Sort => It's removed unused namespaces and sorted by alphabetical.
Keyboard Shortcut key: SHIFT+F10+O+R
Note 1: Will performance be an issue, if there are unused Using?
No, there won't be any impact on the application performance.
Benefits of removing unused namespaces
* Clear code, which in turn makes in easy to read and maintain
* Intellisense runs faster
* Faster Compilation
Next Articles
Visual studio shortcut keys
Step2 : Hover the Organize Usings
1. Remove unused Using => It's removed unused namespaces
2. Sort Using => It's sorted namespaces by alphabetical
3. Remove and Sort => It's removed unused namespaces and sorted by alphabetical.
Keyboard Shortcut key: SHIFT+F10+O+R
Note 1: Will performance be an issue, if there are unused Using?
No, there won't be any impact on the application performance.
Benefits of removing unused namespaces
* Clear code, which in turn makes in easy to read and maintain
* Intellisense runs faster
* Faster Compilation
Next Articles
Visual studio shortcut keys
Subscribe to:
Posts (Atom)