Dec 15th, 2008 | No Comments

There are a few hidden gems in Visual Studio that are easy to overlook. One of those is the Code Definition Window (ctrl+\,ctrl+d or View – Code Definition Window).

The Code Definition Window will work in two different ways. The first is with your current code editing window. As you navigate your code, the Code Definition Window will display the definition of the objects currently under your cursor. For instance, if your cursor is currently over a class level variable, the Code Definition Window will display the location in the source file where the variable is declared. The same goes for methods and classes both within the current source file and in other source files within your current solution.

The second way the Code Definition Window can work is in conjunction with the Visual Studio Class View Window (ctrl+shift+c or View – Class View). The Class View Window is a handy tool window in its own right, giving a quick overview of the object model of the current solution and allowing fast navigation through namespaces, classes, and methods. If you double click on a method in the Class View Window, Visual Studio will open the appropriate source code file and scroll to that particular method. This is quite useful for larger projects and for projects that might have multiple class definitions in each file. However, if you single click on a method, the contents of that method will show in the Code Definition Window without opening the file in a text editing window.

codeview

Nov 24th, 2008 | No Comments

Every good developer knows how to use his tools. He knows what can be done, which are the shortcuts, that’s the sign of good Geek. Knowing your tool is very important to get your work done faster.

In Visual Studio you can play around with the editors settings write from setting up your own shortcuts chaning font color, font size, selection color and many more things.

You can access the options of the Visual Studio from Tools – Options,

options

Some of my favourite settings are Line numbers, Selection color. You can change entire settings of Visual Studio from this Options menu.

texteditor

You can see here you can also make changes which are specific to languages, you can use in Visual Studio.

Of all this my favourite one is the, ability to change inbuilt keyboard shortcuts. Some of the best inbuilt keyboard shortcuts are

ctrl k + ctrl d = indentation,

ctrl k + ctrl c = comment

ctrl k + ctrl u = uncommnet

ctrl k + ctrl k = toogle bookmark

and many more. Although you have complete control over these and you can change this as per your convinience.

shortcuts

Written by Ajay Matharu

November 24th, 2008 at 3:32 am