Customize your Find in Files Results experience!

Another awesome hidden editor feature…

You can customize your Find in Files results to show what you want to see and how you want to see it.

Example:  You don’t want to view the entire file path shown in the Find Results tool window.

Find all "using", Match case, Whole word, Subfolders, Find Results 1, "Entire Solution"

C:\Documents and Settings\someuser\Local Settings\Temp\~vs90.cs(1):using System;

Matching lines: 1 Matching files: 1 Total files searched: 1

Instructions:  (since these involve modifying registry settings, please use at your own risk!)

1. Go to HKCU\Software\Microsoft\VisualStudio\8.0\Find
2. Add a new string called Find result format with a value of $f$e($l,$c):$t\r\n where

$f is the filename

$e is the extension

$l is the line

$c is the column

$t is the text on the line

Note:  You don’t have to restart Visual Studio to pick up on your registry changes.

Results:

Find all "using", Match case, Whole word, Subfolders, Find Results 1, "Entire Solution"

~vs90.cs(1,1):using System;

Matching lines: 1 Matching files: 1 Total files searched: 1

Full list of items you can specify in the registry

Files

$p      path                       

$f      filename               

$v      drive/unc share            

$d      dir                        

$n      name                       

$e      .ext                       

Location

$l      line                       

$c      col                        

$x      end col if on first line, else end of first line

$L      span end line

$C      span end col

Text

$0      matched text               

$t      text of first line

$s      summary of hit

$T      text of spanned lines

Char

\n      newline                   

\s      space                     

\t      tab                       

\\      slash                    

\$      $                         

If you come up with a great combination of values, please leave a comment and share with the group!

Tags: VSTips

View original tips

Living Large on Channel 9

At the end of Sprint 1, Ken Levy from the Ch9 team came over to film demos of our first three power toy releases.  You can watch the video and leave feedback, comments, whatever at http://channel9.msdn.com/ShowPost.aspx?PostID=177200

For the next 24 hours, we’ll be the featured video on the Channel 9 homepage.  Pretty cool stuff.

And since my mom reads my blog, I swear Craig beat me to saying “Hi Mom!” first.  =)

Nice Girls Don’t Get the Corner Office

I wished I had gone to the Microsoft Women’s Conference in ‘05 to hear Lois Frankel speak about her book Nice Girls Don’t Get the Corner Office, and of course to get her autograph.  I would love to ask her, “Do tomboys have a better chance at getting the corner office than nice girls?”  Her book is based on re-wiring some of the lessons learned in girlhood about what it takes to grow up as a nice, young lady.  Whenever you’re presented with such a lesson at an early age, you can either accept the lesson or rebel against it.  Only as you get older do you learn how to ignore such things, if ever.  Her book focuses on the consequences of accepting such lessons.  But what about the lessons that we rebelled against?  There were quite a few action items that involved learning to play chess or take up a sport, but i didn’t see any action items about learning to take ballet or dance classes.

Gretchen attended the presentation in ‘05, so you can read her Women’s Conference / Nice Girls review here on her blog.

About the book

As any self-help book would do, it starts off with a quiz.  The quiz tells you how well you are doing against each category of mistakes.  After the quiz, you’ll be able to tell what areas you are exceeding in and which areas you are failing / making mistakes in.  The idea is to focus on the areas you’re not doing so well in.

The 101 mistakes are divided into categories.   Each Mistake includes

  • What the actual mistake is
  • Why the mistake is being made
  • A real-world example, usually of someone at a VP level, making the mistake, what the consequences were, and how she fixed it
  • Action items to avoid making the mistake in the future

Favorites / Highlights

  • The best thing about this entire book is the real-world examples.  It really makes the book worth reading (and worth me writing this blog entry about it).
  • If you love reading self-help books, this book is not short on any recommendations.  Each mistake has at least one book recommendation to read.
  • Quote from Mistake 21 (page 69), “Be the best friend you can be to your employees, but don’t think for a minute they’re your best friend.”  The First Break All the Rules book touches on it, but never really comes out and says it quite like this. 
  • The handshake (mistake 28).  Finally, a written rule for handshakes “Keep extending your hand until you hook thumbs.”  I hate it when guys grab my fingers and squeeze.  Ouch. 
  • Mistake 59: Asking for Permission.  Once upon the time back in college, i learned that it is better to ask for forgiveness than permission.  It’s something i always consider whenever i feel i need to “get permission.” 

Mistakes I Disagree with / Lowlights

And it comes as no surprise that there’s stuff i disagree with in the book…

  • Mistake 26:  Decorating Your Office Like Your Living Room:  Decorating my office is a conscious, strategic strategy.  Not only to make it “tall-people safe”, I want it to be inviting for people, although Josh’s sofa is much more comfortable than my futon or lovesac.  It’s interesting that Mistake 27: Feeding Others is okay if it is a part of a conscious strategy, but Mistake 26 makes no mention of strategy.  And yes, i do feed others when
    • i’m a n00b to the team and we attend our first meeting
    • to thank people for coming to a lunch meeting (i have to send the request, sorry)
    • to celebrate the end of a major milestone
  • Mistake 37 Skipping Meetings:  The author never worked as a PM at Microsoft.  =)

 

View original comments

What sort of tools would you expect to fall under the name “Power Toys for Visual Studio”?

To all the developers out there who love power toys, I could use your help on this one. 

If I were to call our power toys collection “Power Toys for Visual Studio”, what sort of tools come to mind?  Do you think of

a. tools that assist in debugging, writing code better and faster, etc.
b. tools that enhance Visual Studio, like MSBee and TFS Administration Tool
c. add-ins, packages, and macros for Visual Studio that live only within the environment?
d. all of the above

It is my hope that you’ll circle answer D: All of the above.  I’ve heard good arguments to use “Power Toys for Visual Studio” and I’ve heard good arguments to use “Developer Power Toys” or “Power Toys for Developers.”  My concern is that if I went with “Power Toys for Visual Studio”, would you expect to find tools like the Managed Stack Explorer or a .NET install verification tool (something we’re thinking about for upcoming sprints)?

Another way to think of this is if I had to rename the power toys blog to something, like “Power Toys for ____” blog, what would go into the blank?

Let me know your thoughts.

View original comments

Ultraviolet review – you’ve been warned

Signs your movie is in trouble

  • During an intense action sequence, you think, “the soundtrack is so soothing to listen to.  I’ll buy it for work.”
  • The audience laughs more times than you can count, making you wonder if the film should have been made into a spoof.  Or is it really a spoof?
  • You wonder if they had to pay royalties to The Matrix, Kill Bill, <insert movie here>
  • You create a signature file at work from the climatic romantic moment, in hopes the people who have to read your emails will have a good laugh.
  • Gravity-deifying motorcycles are so 1999

My favorite parts

  • Scene where Violet dodges bullets, but worries about the little boy jumping over the side of the building.
  • “Oh, it’s on now.”  Don’t you have to “get served” before you can “bring it on?” (think SouthPark)
  • The nose device thingy.  Sometimes it is in; sometimes it is falling out.
  • Vampires who don’t drink blood.  Anne Rice must be besides herself.
  • Seeing how the gravity-leveler works, twice.  Would have made for a better "Fusion: the power of 5 blades" razor commercial for the SuperBowl.
  • No longer caring how Violet escapes from the guards.  Fortunately, the director predicted this too, so these scenes are no longer shown, reducing the movie’s running lenght and my need to eat popcorn for comfort.
  • What do you call that style of karate where you can use your opponent’s hair to kill him?
  • Can we predict more triangle roof-access elevators in the 21st century?

And now, so you don’t have to wait for me to respond to your emails (because I’m too lazy to create .sig),
“Although moments like these are beautiful, they’re evil when gone.”
– Ultraviolet  (movie line not taking out of context, because there was no context to begin with)

For you SciFi Channel addicts like me out there, you were probably wondering where you’d seen “6” before.  Trying to figure this out gave me something to do during the fight scenes (and there were a lot of those… about 80% of the movie).  Cameron Bright played in the Stargate SG-1 Episode called The Fourth Horseman (I & II) that aired this season.  His acting works very nicely as an ascended being who is slowly losing his mind trying to retain memories while wondering if he can still get it on with his x-girlfriend when he was in (adult) ascended form.  He also acts very well in a suitcase.

View original comments