Saturday, September 27, 2014

Tip 2.19: You can remove unused using statements

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



In C#, there's the option to remove any of your unused using statements. This option is especially helpful if you're reusing some sort of template over and over again. Instead of having to comment out each line, compile, see whether the compile was successful, and then either remove or uncomment the line, you can bring up the editor context menu (just right-click in the editor) and choose Organize Usings–Remove Unused Usings. This will do all the hard work for you.



Happy Programming! =)
Posted by Nils-Holger at 11:55 AM with 448 comments.

Friday, September 26, 2014

Tip 2.18: How to change the Brace Matching color

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



You can change the Brace Matching color. Go to Tools–Options–Environment–Fonts And Colors, select Brace Matching (Rectangle), and set this option to the desired color.



And now your curly braces show up with a new highlight color.



Sara Aside

She likes the bright green color. It must be Seattle's nine months of gray weather getting to her.


Happy Programming! =)
Posted by Nils-Holger at 12:48 PM with 989 comments.

Thursday, September 25, 2014

Tip 2.17: What does that Automatic Delimiter Highlighting option do?

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Sara Aside

Honestly, she had to ask around to find out what this one did. She simply couldn't remember.




Whenever you have code construct pairs (that's what the documentation calls them), when you finish typing either the start or end pair, both pairs of words become bold. To turn off this feature, go to Tools–Options–Text Editor–General and uncheck Automatic Delimiter Highlighting.



You can customize the color for the bolding by going to Tools–Options–Environment–Fonts And Colors and selecting Brace Matching(Highlight).



And now the #if and #endif appear in bold and in red.

Happy Programming! =)
Posted by Nils-Holger at 12:41 PM with 1794 comments.