Visual Studio is your toolbox and knowing how to use that toolbox will make you a faster more efficient coder that's not distracted by the complexity of your environment. Almost all the tricks in Visual Studio 2010 work in Visual Studio 2012 as well, and many also work in previous versions of Visual Studio. You'll learn how to leverage IntelliSense and more efficiently edit code. You'll see a boatload of keystrokes in the context of getting things done. Find and Replace has some of the most underutilized features of Visual Studio and you'll learn how to speed up simple searches by avoiding the Find dialog, nuances of exploring symbols, and Regular Expression for find and replace.
IntelliSense Hello. This is Kathleen Dollard. This video is part of the course titled Tips for Editing, Searching, and Navigating in Visual Studio 2010. In this module I'll cover details from IntelliSense. IntelliSense has been lovingly called Intelli crack. We've become a bit dependent on it. For many programmers it has become the primary means of discovery about the huge dot net framework in other libraries. For others it's become a source of correctness, and for others it's a way to minimize key stokes. There's an art to using IntelliSense. To gracefully maximize IntelliSense effectiveness while minimizing its impact on the natural flow of your coding. It's perfectly reasonable to think of IntelliSense as all that stuff that helps you type. There are several kinds of IntelliSense AutoComplete, list numbers, parameter information, and quick info. Special cases of AutoComplete are covered would snippets in Module 3 on editing. The libraries we work with have thousands of methods and classes. It is often faster to track down class or member you need through IntelliSense then through the help system. IntelliSense is great when you're doing raw discovery and when you have used a class member at some point in the past but can't remember the exact name. Letting IntelliSense complete items for you avoids spelling errors and corrects capitalization. IntelliSense is tuned to minimize your key strokes. In total the goal of IntelliSense is to increase the efficiency of your coding. Now if it's distracting it won't accomplish this. In addition to IntelliSense for framework classes, you can supply IntelliSense for classes you create when you provide XML comments for classes or methods. You can do this in either C sharp or VB. Running a handful of habits that you smoothly integrate your style with IntelliSense.
Editing Kathleen Dollard: Hello. My name is Kathleen Dollard and this video is part of the Pluralsight series tips for editing, searching and navigating in visual studio 2010. I'm going to start with some general tips on editing. Then I'll cover some ways you can change the code appears to you and doesn't affect anyone else. I'll go on to some code formatting and whitespace changes that will enter your source control system and appear as changes to your entire team. Look at some text selection tips and also how to do column selection. I'll go over some interesting tricks with copy/paste. I'll do four clips on snippets. I'll look at using them in C# and VB, some language agnostic aspects of snippets, and also how to author and share your snippets. I'll look at some special case autocomplete that will include generate from usage features and I'll also cover this separately for VB and C#. So let's get started. The next clip covers some general editing techniques for visual studio. ( Pause )
Find and Replace Kathleen Dollard: This module offers techniques to improve your search effectiveness. Find contains some of the most underutilized features of Visual Studio. I'll start with some Find basics like shortcuts to repeat a search, then I'll show you how to use ComboBox Search. Incremental Search is one of the most underutilized features of Visual Studio. It has been available for several versions, but many people don't know it exists. You can search across your solution and search in specific directories, even defining sets of directories that you can reuse for searching. You can also search for only symbols, ignoring the same word that appears in comments, in noncode files, or as key words. I'll also show you the power of regular expressions and how simple they are to use. RegEx can give you a more limited set of results, find results you wouldn't otherwise be able to determine, and allow complex replace actions. Visual Studio Find features are incredibly rich, and I think almost everyone who uses Visual Studio will find something new in the details of how these features work.
Special Topics and Conculsion This module covers some special topics. I haven't tried to cover every aspect of Visual Studio in this course, I've had separate modules on the three most important areas, effectively using IntelliSense, editing and find replace. This module covers three special topics that didn't fit logically into other parts of the course. This module has a group of clips on navigating between Visual Studio windows, both document and tool windows. This is a very easy place to lose flow as you try to find the window for your next operation. There's an amazing number of techniques for moving between Visual Studio windows. The set of techniques here just covers the most often overlooked windows navigation techniques, not the related code navigation techniques like navigate to. This module also has a clip on the object browser, the object browser has been included in all dot net versions of Visual Studio but you might be overlooking some of its powerful features. The final topic is on the two approaches to saving the environment. I give you a general idea of what's part of your environment but I'm not going to try to tell you everything about how to set your environment because it falls into two categories, things you'll find fairly easily wondering around the tools options dialogue and things Visual Studio takes care of four you without you having to think about it. However, how you manage your Visual Studio environment is an area where there's a obvious way to save and restore the environment in a nearly unknown way to have multiple environments simultaneously on a single computer. The next clip gets started with the IDE navigation.