Telerik blogs
  • Productivity

    Visual Studio Tip: Debugging Hints

    Tracking down those pesky flaws in a piece of code is, in my humble opinion, the most challenging part of software development. Thankfully we have a top-notch debugger built into Visual Studio. Unfortunately, the debugger is one of the features of Visual Studio that I am the least proficient with. I know how to set a breakpoint and take a look at the values of my local variables when that breakpoint is reached, but beyond that I'm pretty much clue-less. Well, I was lucky enough to attend John Cunningham's talk at PDC last week and learned quite a few valuable tips that enhanced...
    November 08, 2008
  • Desktop WPF

    WPF: Debugging Expression Blend Exceptions with Visual Studio

     Although Expression Blend and Visual Studio can work on the same solution / project files, they remain two separate IDEs and it is not uncommon for certain functionality to work correctly in the Visual Studio design-time environment and throw an error in the Expression Blend one. The Blend error output does not always help much with identifying the reason for the erroneous behavior:    This clearly does not give us enough information to track the problem down. Fortunately there is an easier way to detect the problem instead of wandering around the code in a manual “debugging” session – the Visual Studio...
    October 16, 2008
  • Productivity

    Visual Studio Tip: Spice Up the IDE

    Developing .NET applications is fun stuff. However, if you're like me sometimes using the same tools every day can get a little boring. That's why I often like to spice things up by changing the look of my IDE. Lucky for us, Visual Studio makes it easy to change the look of your development environment in just a few clicks. By heading to Tools | Import and Export Settings... you can export and save a backup of your current settings (a recommended practice before trying out any new settings) or import new settings from a file. These settings are saved in...
    October 06, 2008
  • Productivity

    Visual Studio Tip: Creating Your Own Code Snippets

    I recently blogged about using code snippets as a shortcut to writing more code in less time. In this post, I'm going to walk you through the steps to create custom snippets that you can install into Visual Studio for use in your own projects To get started, let's take a look at the anatomy of a snippet. A snippet is nothing more than an XML file, with a .snippet extension, containing configuration settings. If you open up the file foreach.snippet (located in "<Visual Studio installation directory>\VC#\Snippets\1033\Visual C#") you'll find the following XML, which defines the foreach snippet: As you can see, the XML used to...
    September 12, 2008
  • Productivity

    Visual Studio Tip: Using Code Snippets

    A few weeks ago I blogged about creating your own reusable templates for Visual Studio. One of my favorite things about Visual Studio is that it offers a lot of great ways for developers to improve the development experience (and productivity) by adding many extensibility points in the IDE. Now developers have the option of adding on to existing features of Visual Studio with templates and macros, or integrating completely unique features directly into the IDE with add-ins. One of these extensibility features, snippets, adds a ton of value to developer productivity and is incredibly easy to use. Snippets are small, parameterized...
    September 05, 2008