Visual Studio 2010 New IDE Features
Visual Studio 2010 New IDE Features - It explains about the Visual Studio 2010 IDE New Features
1. Multi-targeting Support in Visual Studio 2010
2. Visual Studio 2010 Code Intellisense Improvements
3. Multiple Monitor Support
4. Searching and Navigating Code in Visual Studio 2010
5. Box Selection and Multi-line Editing Support with Visual Studio 2010.
6. Debugging Tips/Tricks with Visual Studio 2010
7.Search and Navigation Tips with Visual Studio 2010
1. Multi-targeting Support in Visual Studio 2010
2. Visual Studio 2010 Code Intellisense Improvements
3. Multiple Monitor Support
4. Searching and Navigating Code in Visual Studio 2010
5. Box Selection and Multi-line Editing Support with Visual Studio 2010.
6. Debugging Tips/Tricks with Visual Studio 2010
7.Search and Navigation Tips with Visual Studio 2010 1. Visual Studio 2010 IDE – Multi-Targeting
A. VS 2010 can be Installed "side by side" with other versions of VS [2008, 2005 or 2003] on the same machine.
B. Provides Multi-Targeting Support, You can work with the Projects targeting Net 4.0, 3.5, 3.0 and 2.0 Framework.
C. VS 2010 provides 100% accurate intellisense when targeting a particular version of the .NET framework.2. Visual Studio 2010 IDE - Code Intellisense Improvements
A. Provides Ability to better filter type and member code completion. This enables you to more easily find and use APIs when writing code.
B. VS 2008 – Intellisense – Manually scroll up and down to select suitable option.
Note:Naming guidelines specifies types and Members are by default "Pascal Case" Styled [Means: Each Keyword starts with Capital Letter]3. Visual Studio 2010 IDE - Multiple -Monitor Support
A. VS 2008 hosts all documents/files/designers within a single top-level window.
B. VS 2010 allows Editors, Designers and tool-windows to be moved outside the top-level window and positioned anywhere on the monitor.
4. Visual Studio 2010 IDE – Searching and Navigating Code
A. Makes it easy to quickly search, navigate and explore code within a project or solution. [Note: Useful when searching the code in existing project]
B.VS 2010 "Navigate To" Support
-> Allows you to quickly search for types, files, variables and members within your solution with minimum keystrokes.
-> Use Ctrl+Comma (,) short cut to open "Navigate To" Dialog box. [Edit -> Navigate to Option].
C. Fuzzy Search Capabilities – Allows the user to perform smart filters and searches without having to know exactly the name of the thing you are looking for.
D. View Call Hierarchy
Allows you to quickly discover where a particular method or property within your code-base is being called from, and allows you to quickly traverse the call tree graph throughout the code-base.
To Activate this feature
-> Short-cut Key Ctrl+K, Ctrl+T.
-> Select "View Call Hierarchy" option from context menu.
E.Highlighted References
Select or highlight a variable / parameter / field declaration within the code-editor, all subsequent usages of it are now automatically highlighted for you within the editor. 5. Visual Studio 2010 IDE – Search and Navigation Tips/Tricks
A.Incremental Search
-> Press "Ctrl + i" to enable the Incremental Search.
-> Changes the cursor and status bar at the bottom left of the IDE to change to "Incremental search: (search term)".
->Type Search term "ctr". [Press Ctrl + I again to find next usage of the same term.
-> Ctrl + Shift + i in to search in the reverse direction.
Esc Key is used to stop the incremental search.6. Visual Studio 2010 IDE – Box Selection and Multi-line Editing Support
A. Allows you to select Rectangular region of text in code editor window.
Hold the Alt Key while selecting the text using mouse.
1.Text Insertion:
2.Paste/Replace:
3.Zero-Length Boxes:
B. It is useful in the following scenarios
1. Modifiers (private->public)
2. Adding comments to multiple lines
3. Setting fields
4. Grouping multiple statements together7. Visual Studio 2010 IDE – Debugging Tips
A. Run to Cursor (Ctrl + F10)
Press Ctrl + F10 keys to activate this feature.
This will run the application to that line location and then break into the debugger.
Saves you from using multiple F10/F11 keystrokes to each the line.
B. Conditional Breakpoints
Allow you to break in the debugger only if some specific condition is met.
It makes the whole debugging process less manual and tedious.
Enabling Conditional Breakpoints
Press F9 to enable breakpoint on a specific line
Right Click on Red Circle and Select the option Condition from context menu.
Set the Condition in the Breakpoint condition dialog box.
Break the debugger when ctr value is Greater than
Rerun the application, Debugger will break only when the ctr value is Greater than 7.
C. Hit Counter:
Used to set the break when nth time is true
Right Click on break-point and select HitCount command.
It Opens dialog box and their indicate the breakpoint will only be hit the Nth time a condition is met