Browse by Tags

Dynamic Code Generation in .NET
05 January 08 03:08 PM | john | 0 Comments   
I recently had the need/desire to dynamically generate some code in .NET. It's not something you tend to do a lot unless you are creating a compiler, so it was an interesting experience. In the end it didn't solve my problem, but it was educational none-the-less. Read More...
Team System Web Access Power Tool Announced
30 July 07 04:05 PM | john | 0 Comments   
OK, in my opinion this is a bit more than a power tool - it's an entire product. If you are using Team System you need to download and set up the Team System Web Access Power Toy that we just released. Team System Web Access (formerly known as TeamPlain) Read More...
Listing All Solution Project Properties
12 July 07 10:04 PM | john | 2 Comments   
Don't ask why, but I needed to list all the properties of all the projects in a solution. Here's the macro that did it for me: Sub ListProjectProperties() Dim pane As EnvDTE.OutputWindowPane pane = Utilities.GetOutputWindowPane( "Output" ) Dim projects Read More...
Filed under: , ,
VS Macro to insert TODO
04 May 07 04:59 PM | john | 2 Comments   
Here's another useful VS macro. When I write code there are always weird edge cases that I think of while so I like to liberally sprinkle // TODO: comments around. When you do this though you should always put in your alias and the date. That way someone Read More...
Filed under: , , , , ,
Turning Off Vista Problem Reporting
16 April 07 04:22 PM | john | 2 Comments   
Vista problem reporting is a great idea for end users, but it really gets in the way if you are a software developer. You know what I'm talking about right? You run your program, which then proceeds to throw an exception and now, instead of throwing up Read More...
Visual Studio Column Guides Redux
22 March 07 09:06 AM | john | 2 Comments   
I was just informed by one of my colleagues that there is a hidden feature in Visual Studio to add guidelines into the text editor. Guidelines are virtical dotted lines that show character column boundaries. This is useful if you are formatting something Read More...
Visual Studio - "Defy All Challenges"
16 March 07 11:32 AM | john | 0 Comments   
The VS marketing folks have just launched a new campaign call Defy All Challenges . Go check out the videos. Very Red vs. Blue . "There are currently two parties on the call, a Mummy and a Unicorn... A drunken pirate has joined the call." Read More...
Subtle Visible Whitespace in VS 2005
02 March 07 12:16 PM | john | 2 Comments   
Sometimes obvious things elude me. My colleague, Steve Steiner, just pointed out that if you go to Tools, Options..., Fonts and Colors and change the setting for Visible White Space under the settings for Text Editor to a more subtle color, like Silver Read More...
Filed under: ,
Playing with VS macros: Getting the PrimaryOutput
11 February 07 04:00 PM | john | 2 Comments   
Some things that should be easy are still much harder than they should be. One of those things is writing macros and add-ins for Visual Studio. The object hierachy is (a) obfuscated by a COM/managed interop mess (b) not logically or consistently laid Read More...
VS Macro to Insert GUIDs
03 January 07 03:56 AM | admin | 2 Comments   
One of the most useful macros I ever wrote in VS was but a single line. All it does is insert a GUID at the current selection point. It was so useful I wrote it twice; once to insert lowercase and once to insert uppercase GUIDs. Here it is: Imports System Read More...
Filed under: , ,
Visual Studio Macro Balloon
17 January 06 09:10 PM | john | 0 Comments   
I've always loved editors with built in macro languages. Once you have macro control of every facet of the editor you can pull off some really cool and time saving tricks. I gave up macros back in the early 90's for the graphical environment of Microsoft Read More...