Browse by Tags

How to show white space in Visual Studio
In Microsoft Word I usually have the paragraph symbol turned on to Show Hidden Formatting Symbols (white space) so that I can clearly see spaces, tabs, and other white space characters.  Up until recently I had no idea that Visual Studio had the...
How to quickly comment or uncomment lines of code in Visual Studio
When I am developing I am always trying to reduce the amount of time that my hands come off of the keyboard and have to move to the mouse.  One of the frequent functions that I noticed required me to move my hand off of the keyboard to the mouse...
How to quickly format a C# class file – Ctrl-K, Ctrl-D
In C# as you are typing in a class file the indenting of your code can easily get out of alignment making the code hard to read.  Where does your class, if block, or method begin and end?? You can manually go and fix each line but there is a much...
Use Ctrl+. (period) to trigger Visual Studio’s automatic add using statement context menu
When you type class names that are missing the correct namespace reference, Visual Studio will help you out by giving you a context menu that you can use to automatically add the correct using statement to the top of your class. For instance, in the example...
Timestamp string with milliseconds from a System.DateTime
You can easily convert a System.DateTime object into a string based on the current date and time by using the ToString() method of the DateTime object.  For instance: DateTime d = DateTime.Now; String s = d.ToString(“yyyyMMdd-HHmmss”); Will produce...
Parse a non-standard date string into a System.DateTime object
The other day I had a date that was in the form of yyyyMMdd and I needed to parse that string into a System.DateTime object.  Just trying to parse the string into a System.DateTime object would not work: String dateString = "20091016";...
osql.exe and unicode files – how to save your sql scripts with encoding
osql.exe is a great application for running sql scripts in a batch.  I use a batch file to execute multiple sql scripts that I use to rebuild my current application database from scratch.  When developing a brand new application, deploying a...
PureText is Pure Gold!
PureText from Steve Miller is a very simple and extremely useful utility that makes the Windows-V hot key combination paste non-formatted text instead of formatted text.  I use it all over the place and I make sure it is installed and set to run...
Use Alt-key to select arbitrary block of text in Visual Studio
One of the my most favorite tips/tricks for Visual Studio is the ability to copy and paste an arbitrary block on text in the Source View by pressing and holding the Alt-key while dragging your mouse.  A quick example is the best way to describe it...
More Posts

Search

Go

This Blog

News

    Ads by Lake Quincy Media
    Ads by Lake Quincy Media

Recommended Blogs

Syndication