December 2007 - Posts
Today's tip is pretty straightforward. Under Tools - Options - Environment - Documents, there's the Open file using directory of currently active document. When reading this, it took me a few seconds to think "what's the open file thingy?" It's referring
Read More...
In Tools - Options - Environment - Documents , there's the option Allow editing of read-only files; warn when attempt to save. If this option is checked (my personal preference), you'll get prompted whether you want to overwrite or save the document as
Read More...
Under Tools - Options - Environment - Documents , there's the option to Detect when file is changed outside the environment . Under it is the subsequent option to auto-load changes, if saved . Personally, I can't imagine working without having the first
Read More...
Go to Tools - Options - Environment - Documents , and check the Reuse current document window, if saved option to give it a try. If the current document window is dirty (meaning you've made a modification, but haven't saved yet), the next document will
Read More...
On the Tools - Options - Environment - General page, you'll find an animate environment tools slider. This option controls the speed at which a tool window will slide in and out of an auto-hide state. Additionally, you can opt-out completely from the
Read More...
In the Tools - Options - Environment - General page, you'll find the checkboxes Close button affects active tool window only Auto Hide button affects active tool window only Below is a snapshot of two tool windows docked together with the "closed button"
Read More...
I'm in New Orleans right now (Miss Gulf Coast to be exact), and I just heard The 12 Yats of Christmas on the radio today. Hysterical. Anyone from New Orleans will crack up listening to this. The music video is up on youtube of course, but
Read More...
I'm not sure what the user scenario is for hiding the status bar, but if you need / want to hide it, you can. Go to Tools - Options - Environment - General and uncheck Show Status Bar If you have a real-world example, please let me know! Thanks! Technorati
Read More...
Yes, you've guessed it, we're in a series of related tips... with the lowest common denominator being the Tools - Options - Environment - General page. Today's tip we're going to look at the Recent Files options, starting with the number of files to be
Read More...
In Visual Studio, there's a setting to toggle Visual Studio from the default tabbed document mode to a MDI (Multiple Document Interface) mode, as it is commonly referred to. Go to Tools - Options - Environment - General and select Multiple documents found
Read More...
for those of you following the tip of the day series, it's time for something a little bit different. The first time I saw this test case in the editor test bed, i thought, "whoa (yes, Keanu Reeves style)... i've opened this dialog box a 1000 times and
Read More...
C# and XML support the Edit.SurroundWith command that will insert the desired snippet around the selected code (whether it is just a selected word, selected line, or entire function) The keyboard shortcut is Ctrl+K, Ctrl+S. Technorati tags: VS2005Tip
Read More...
I like this tip because it isn't really how to use features, but rather how to combine features to do new things. Put the snippets you want others to have access to out on a share. Go to Tools - Code Snippet Manager , press the Add button and give it
Read More...
All code snippets are found in the Code Snippet Manager. It is found at Tools - Code Snippet Manager. If you are using the default general settings, you can use Ctrl+K, Ctrl+B to bring up the dialog box. IMO, the most useful aspect of this dialog is to
Read More...
Update: thanks to Bill for catching that VB doesn't show snippet shortcuts in the statement completion. I've updated the VB picture below to better illustrate what is going on. Also, check out Bill's post, as he talks about using the '?' to insert snippets.
Read More...
Although I chose the wrong line at the border to reenter the US, adding an extra 45 minutes to the wait, I successfully completed my first solo trip into Canada to sit on the DevTeach open source panel. You can find the recording as .NET Rocks! episode
Read More...
When you insert a code snippet, the editor highlights the fields (variables, values, etc) you can modify depending on how the code snippet was written. The idea is you modify the contents of the field, then press tab to navigate to the next field. When
Read More...
I've been inspired by the Silverlight Tip of the Day series (which was originally inspired by this VS Tip of the Day series) to include the tip # in the titles. Isn't community cool?! Here's the first Silverlight tip to check out. When the
Read More...
In Visual Studio 2005, we introduced code snippets. The VS Editor Team Blog has a nice write-up on code snippets , if you want to learn more instead of waiting for a tip here and there from me =) So we're going to start the code snippet tip series with
Read More...
This tip and yesterday's tip were my least favorite features to test. It would just drive me crazy trying to keep up with when should a tab get inserted, when should the cursor move to the correct formatted position, etc. Now, i will only use spaces in
Read More...
Smart indenting is the option you want provided you want the cursor to be properly indented whenever you press enter or arrow up and down through the code. An example is when you create a new method called foo(), then hit enter. You'll notice the cursor
Read More...
At the very top of the editor and just below the File Tab Channel, you'll find the Navigation Bar. The left combo box lists objects and the right lists the select objects members. This is very useful when you need to jump to various functions throughout
Read More...
A previous tip talked about what that automatic delimiter highlighting option does. A follow-up tip is how to change the Brace Matching color. Go to Tools - Options - Fonts and Colors, select Brace Matching (Rectangle), and set to the desired color. I
Read More...
Just in case you ever need to do this... Go to Tools - Options - Text Editor - All Languages - General and uncheck Auto List Members and Parameter Information . If you just want to disable intellisense by default for a particular language, go to the Text
Read More...