Back in the Visual Studio 2003 days, you had to go to File – Page Setup, and check “Line numbers” (in the lower-left hand corner) in order to print line numbers, regardless whether they were visible in the editor. For Visual Studio 2005, we moved...

Go to Tools – Options – Text Editor – All Languages – General , and check Line numbers to show line numbers for all files. If you just want to see (or not see) the line numbers of a specific file, you can override this global setting by going to...

2 years later… Let’s take a second to raise our morning coffee cups in honor of the people of New Orleans and the Mississippi Gulf Coast on this day. And for those in Seattle, try to point towards the space needle (i just always wanted to say that...

Not one of my finer tip of the day titles, but it illustrates the point. =) With either a single line or several lines selected, you can either use the Increase Indent or Decrease Indent toolbar button found on the text editor toolbar, or from Edit...

Press Ctrl+Shift+U to make the current character or selected characters uppercase Press Ctrl+U to make the current character or selected characters lowercase I got to be honest here and say I had to ask around when these commands would be useful. ...

Update : There was a trackback here to Brian Williams’s blog , but unfortunately, due to the 100s of comment spam attacks each night, it got lost. So 2 years ago this day, I called my mom to tell her I made it to the Visual Studio homepage for my...

On the Edit – Advanced menu, you’ll find the Delete Horizontal White Space (interesting, i thought whitespace was one word) command bound to Ctrl+K, Ctrl+\ . To use, put the cursor anywhere in the whitespace that precedes the line, and press Ctrl+K, Ctrl...

Press Ctrl+T to transpose a character Press Ctrl+Shift+T to transpose a word Press Alt+Shift+T to transpose a line In the above example (where the cursor is placed before the "is" on the commented line "now is the time"), Pressing...

In the above picture, note the location of the cursor in the middle of the current line. Pressing Ctrl+Enter will insert a blank line above the current line and Ctrl+Shift+Enter will insert a blank line below the current line. The cursor will...

There are four commands that involve converting spaces to tabs and tabs to spaces. Edit – Advanced – Tabify Selected Lines – Replaces the leading whitespace on a line that contains the selection with tabs. Edit – Advanced – Untabify Selected Lines...

Ever been typing in the editor, and for whatever reason, the text isn’t indented properly on the line? Instead of manually pressing backspace or tab for each line of text, just press Ctrl+K, Ctrl+D , which does a Format Document. For larger files...

Ah, it really is the simple things in life, isn’t it? Use Ctrl+K, Ctrl+C to comment code and Ctrl+K, Ctrl+U to uncomment code. All the default settings, including the General Development Settings, Visual Basic, C#, and C++ have these commands bound...

The Visual Studio shell is a big place. I should know, since I used Visual J++ everyday for a year before joining the team. As I write these tips, I try to think back to my J++ days to come up with a list of tips and tricks I wish I had known...

Today’s tip is mutually exclusive to yesterday’s word wrap tip , meaning try as you might, you won’t be able to enabled both word wrap and virtual space. But if you figure out a way to do it, please send me mail. =) Note: in the picture above...

Go to Tools - Options Dialog , and under Text Editor – All Languages – General, check the Word Wrap option. When checked, you’ll have the option to show visual glyphs for word wrap . You can also customize the foreground color of the visual glyph...

In the previous tip , I introduced the Ctrl+D Window and how it does a Quick Find in the current document. Today’s tip focuses on how to customize your Ctrl+D search experience. Press Ctrl+F to bring up the Quick Find tool window. Then you...

The Ctrl+D Window is another way of doing a Quick Find with the scope limited to the current document. Press Ctrl+D to reach the Find Combo Window. Now, type whatever search string and press Enter to do a forward search or Shift + Enter to...

Visual Studio has four window layouts: Design view – what you see when you launch Visual Studio Full screen – View – Full Screen Debugging view – when debugging File view – when you run “devenv.exe foo.txt” But today’s tip focuses on Full Screen. ...

Docking targets are hands-down my all-time favorite feature that I tested back in my VS Environment days. Oh, the fun I would have opening bugs like, "Tool Window client area resizes to a negative size after redocking to same location 100+...

And yet another one of those, wow, i didn’t know you could do that, until someone shows you, is you can "maximize" a tool window within Visual Studio by selecting "Tabbed Document." With your desired tool window selected, either...

After you drag a tool window to an undocked position, you can quickly redock the tool window to the previous location by Double-clicking the titlebar. Also, you may notice some tool windows are in "tool window groups" (as shown in the image...

You may have noticed that within tool windows like Solution Explorer, you cannot reach the toolbar by hitting tab or arrowing to it. The keyboard shortcut to reach a Tool Window’s toolbar is Shift + Alt . Note that Alt + Shift will not work...

When a tool window is not docked… Press the Alt key once Press the Spacebar key once. You will get the standard window system menu with Move and Size. Select Size Now, just arrow towards the window edge you wish to resize, and resize from...

Since almost everyone has asked me to share this story on my blog… On Friday, after the conference was over, I drove my little scooter to the Subway near the convention center, about 2 blocks away. On my return, a guy sitting at a Starbucks asks...