Monday, June 30, 2008

Auto-Formatting Removes Tabs

Turns out there's a way to get Visual Studio 2008 to preserve your spacing if you've lined up your declaration statements.

Karen's Space : Auto-Formatting Removes Tabs: "A new option was added to Tools | Options | Text Editor | C# | Formatting | Spacing | Set other spacing options.
The option is a check-box and says: “Ignore spaces in declaration statements”."

Saturday, June 28, 2008

Regular Expressions

Jeff Atwood's got a post on regular expressions that included some info on the IgnorePatternWhitespace option which I'd been unaware of till now. That looks like it could be useful.

The comments on his post led to the Regular Expressions Cheat Sheet and to Roy Osherove's Regulazy and Regulator tools. I've used the Regulator in the past but haven't tried Regulazy yet. May want to look into it the next time I'm building a regular expression.