A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Monday, December 29, 2008

Tip #37: Did you know.How to organize usings?

Overtime C# source code files may have unnecessary & unorganized using directives. Visual Studio IDE organize using options can help you to unclutter the source code.

To organize the C# code right click anywhere inside the code editor, select Organize usings.

  • Select Remove Unused Usings to remove any using directives that are not used in the source code (this may remove some required using directives if the source code doesn't build)
  • Select Sort Usings to organize alphabetically the using directives (by default directives that begin with System comes before other using directives)
  • Select remove and Sort to perform both of the above operations

image

 

Thanks,
Deepak Verma
SDET | Visual Web Developer



Source Click Here.

No comments:

Post a Comment

Post your comments here:

Originals Enjoy