Did you know… How to get syntax highlighting for a given file extension? – #097

On the Tools – Options – Text Editor – File Extension page, you can map a file extension to one of the included editors. 

Mapping a file extension .sara to an editor

And after mapping the .sara extension to a C# editor, we now get syntax highlight…

.sara file with C# syntax highlighting

There is also an option to map files without extensions to a specific editor.

Mapping extensionless files to an editor

Technorati tags: VS2005Tip, VS2008Tip

Did you know… What does that Automatic Delimiter Highlighting option do? – #096

Honestly, I had to ask around what this one did.  I couldn’t remember to save my life.

Automatic Delimiter Highlighting

Automatic Delimiter Highlighting Tools Option

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 will become bold.  To turn off this feature, go to Tools – Options – Text Editor – General

code construct pairs highlighted

Customizing the Automatic Delimiter Highlighting

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

Brace Matching fonts and colors option set to red

then volia…  (i knew that french degree would pay off one day)

automatic Delimiter highlight in red

Technorati tags: VS2005Tip, VS2008Tip

Beth blogs about Sara blogging about Beth’s Tip of the Day Browser as the Tip of the Day Today

I think I’ve blogged myself into a recursion.

http://blogs.msdn.com/bethmassi/archive/2007/11/28/first-day-at-devteach.aspx

Okay, i’ve made it to Canada.  Although make sure you know where "home" is for border patrol.  "Where’s home?" "NeSeattle."  I nearly said new orleans, but caught myself and still got through.

In about an hour, i’m going to be on the open source panel at DevTeach as the only blue badge.  Wish me luck =)

And Beth, you owe me beer.

Heading to DevTeach for tonight’s open source panel

At first, when I heard "come down to Vancouver", i thought Vancouver, WA.  I didn’t realize they were talking about Canada.  Thankfully, i looked up the address of the conference hotel before heading south.  The conference http://www.devteach.com is actually in Canada. 

I’ve never driven across the border before by myself (and i think i’ve only been to canada 3 times previously since i moved out here).  Should be interesting, as if it can happen to me, it will happen to me in the craziest possible way, so i’m going to give myself a 5 hour buffer to cross the border =)

Third Helping: Visual Studio Tip of the Day Windows Sidebar Gadget! – #095

Hey, you know you went back for a third helping at thanksgiving.  So what could follow a Tip of the Day Browser?

How’s about a Tip of the Day Windows Sidebar Gadget!  Special thanks to Rob Caron for making this happen.  I didn’t write the gadget… i just supplied the content =P

Hope you all enjoyed your extra servings Turkey Day specials (a week late, but we are all still eating left-overs.)

Docked State

image

Full Tip Flyout

Full Tip in the Flyout

Undocked (shows last 5 tips)

Undocked gadget

Second Helping: Beth Massi’s Visual Studio Tip of the Day Browser – #094

So what Turkey Day was last week?  No reason why we can’t have a second helping of tip of the day… but as an add-in!

Beth Massi, our VB community expert, wrote a Tip of the Day Browser.  But even better, she’s got a Let’s Build an Add-In walkthrough, which she’s demo’ed at the DevTeach conference.

Visual Studio Tip Of The Day Browser

Pretty cool.  I know i’m very happy to have an easy way to browse all of my tips.  Thanks Beth!!

Did you know… How to use undo to jump the cursor back to the last insertion point? – #093

In a previous tip, we learned more than we ever wanted to know about go-back markers.  Insertion points are slightly different.  They are similar to the go-back markers, but it is anywhere you click the mouse or jump the cursor to.  The go-back marker 10 line rule doesn’t apply.

Move caret command in the undo list

To give it a try, just click somewhere, then click somewhere else (or do a find or a goto if you’re using the keyboard), then press undo.  You’ll move back to that previous location.

The option can be found at Tools – Options – Text Editor – General

Include Insertion Point Movements Tools Option

Technorati tags: VS2005Tip, VS2008Tip

Highlander: The Source – Why Adrian Paul? Why?

Wow, I had recorded this the other day, because hey, it’s a Highlander movie with Adrian Paul, and finally got around to watching it.

Signs you shouldn’t do yet another highlander movie

  • The last highlander movie ended (yet again) with Adrian Paul as the official "there can be only one"
  • The last highlander movie (and series) killed off the main characters featured in "The Source" movie.
  • A character says, "it is the quickening" to remind the audience that’s what it is called when you take another immortal’s power
  • Another character quotes lyrics from the Highlander series, "we are the rulers of the universe."  (i don’t even want to know why)
  • The words "The Source" are mentioned more times than "Lance Armstrong" in the Tour de France.

There were others, but these were the most painful for me to watch.

Did you know… How to jump to the beginning of some selected text when hitting escape? – #092

I hope this tip’s title makes sense.  The idea is that you select some text and then hit escape.  Where do you want the cursor to go? 

Selected text with the selection anchor and cursor circled

If you want it to stay where it is, that’s the default behavior.  But if you want it to jump to the beginning of the selection (i.e. the selection anchor), you need to go to Tools – Options – Text Editor – General and check the Go to selection anchor after escape.

Go To Selection Anchor After Escape Tools Option

Technorati tags: VS2005Tip, VS2008Tip

Did you know… How to have fun with the Find Combo Box – #091

It’s time for an old favorite from the Visual Studio 2005 days…

Remember How to search using the Ctrl+D Window from one of the earlier tips?  Now let’s have a little more fun…

Press Ctrl+D to go to the Find Combo Box and then…

  • Goto a line – type the line number and press Ctrl+G (i like showing this off as how you can do a "go to line" without popping up the go to dialog box) 
  • Goto a file – type the name of the file (either in your project or on the INCLUDE path)and press Ctrl+Shift+G
  • Set a breakpoint on a function – type the name of the function and press F9
  • Get help – type the keyword and press F1

And to continue from yesterday’s tip on command aliases

Thanks to ShawnFa over on the .NET Security Blog for the tip!

Technorati tags: VS2005Tip, VS2008Tip