Watch it on line or download

VS2010 fully implemented with WPF.

 

Code editing improvements

Intellisence improvements :

– Searching for a method or class —

   you can access  “this.”    and then you can insert only some part of your function name or if you are using a Camel case / Pascal  convention of names you can type only the capital letters  and it’ll find the function for you .

– Navigate to dialog – Ctrl + “,”

    type some word you are looking for and get all the references of the word in all the project and jump to the desired location.

   also can use Pascal capital letters for the search through Navigate to dialog.

– View call hierarchy – Stand over your function and in right click you have this new option.

    you’ll get all the objects that use this and all the objects this is using .

– Generate Diagram Sequence  – Stand over your function and in right click you have this new option.

    it’ll build a full diagram sequence for you. You can define the depth of the diagram. This function exists only in the VS2010 Ultimate version  – very cool feature.

    through the diagram you can change the sequence , go to the actual code , customize the layout

 

– With Alt + choose with mouse some text – you can choose some code vertically and do with it something – like tab it or remove it.

Code Snippets – added also to Html and Javascript Editors

 

Javascript  –

         type “control” in js file and press TAB twice –

you’ll get snippet , that when you’ll change the namespace it’ll update itself:

 

Type.registerNamespace("myControl,UI"); 
 
myControl,UI.mycontrol = function (element) {
    myControl,UI.mycontrol.initializeBase(this, [element]);
} 
 
myControl,UI.mycontrol.prototype = {
    initialize: function () {
        myControl,UI.mycontrol.callBaseMethod(this, 'initialize');
    },
    dispose: function () {
        myControl,UI.mycontrol.callBaseMethod(this, 'dispose');
    }
} 
 
myControl,UI.mycontrol.registerClass('myControl,UI.mycontrol', Sys.UI.Control);
 
 
 
Html -
     just type textbox and press TAB twice - 
     it’ll build the control for you - 
<asp:TextBox runat="server" />  

so , now if you’ll add an id for it :

<asp:TextBox runat="server" id= "MyTextBox" /> 
and type bellow a word require it’ll add :
 <asp:RequiredFieldValidator ErrorMessage="errormessage" ControlToValidate="MyTextBox" runat="server" />

few more snippets

– just write “script” + TABx2 when you want to pen Javascript block.

– just write “a”  + TABx2  when you want to create some hyperlink , and you can update its properties just by clicking the tab each time ,                 without using the mouse.

 

 

Debbuging options –

Can go back and forth inside the debugging process . (This function exists only in the VS2010 Ultimate version or in testing targeted versions. Not in Premium ).

Black box feature  -Can export the debugging process to another machine , import it there and recreate the test.  – take a call dump of information of an application that crushed , either a Client App or a Server app on a different machine – they will give  as all the traces – call stack .. . 

Interactive testing allowing people without VS to perform tests on applications.

Call Stack Information more readable for the human eye.

 

 

Not from the lecture –

Useful Extension for VS that I love to use are:

Power Commands  – this one is the best

Productivity Power  Tools .

You can download it through the VS2010 Tools-> Extension Manager editor