Wednesday, April 24, 2013

Format code shortcut for VS2010

Visual Studio WITH C# KEY BINDINGS
To answer the specific question, in C# you are likely to be using the C# keyboard mapping scheme, which will use these hotkeys by default:

Ctrl+E, Ctrl+D to format the entire document.
Ctrl+E, Ctrl+F to format the selection.

You can change these in Tools > Options > Environment -> Keyboard (either by selecting a different "keyboard mapping scheme", or binding individual keys to the commands "Edit.FormatDocument" and "Edit.FormatSelection").
If you have not chosen to use the C# keyboard mapping scheme, then you may find the key shortcuts are different. For example, if you are not using the C# bindings, the keys are likely to be:

Ctrl + K + D (Entire document)
Ctrl + K + F (Selection only)

To find out which key bindings apply in YOUR copy of Visual Studio, look in the Edit > Advanced menu - the keys are displayed to the right of the menu items, so it's easy to discover what they are on your system.

ASP.NET MVC Self-Training in 15 Days

Day 1

Complete Tutorial Set 1: Getting Started
http://www.asp.net/mvc/tutorials/getting-started-with-mvc-part1
Read Material Set A: Overview / Execution Process
http://www.asp.net/mvc/tutorials/asp-net-mvc-overview-vb
http://www.asp.net/mvc/tutorials/understanding-the-asp-net-mvc-execution-process-vb

Day 2, 3, 4

Complete Tutorial Set 2: MVC Music Store (Use Converter to VB)
http://www.asp.net/mvc/tutorials/mvc-music-store-part-1

Day 5:

Read Material Set B: Models and Controllers / MVC Routing
http://www.asp.net/mvc/tutorials/understanding-models-views-and-controllers-vb
Complete Tutorial Set 3: Routing / Custom Routing
http://www.asp.net/mvc/tutorials/asp-net-mvc-routing-overview-vb
http://www.asp.net/mvc/tutorials/creating-custom-routes-vb
http://www.asp.net/mvc/tutorials/creating-a-custom-route-constraint-vb
http://www.asp.net/mvc/tutorials/creating-a-route-constraint-vb
Complete Tutorial Set 4: MVC 3 with Razor View Engine
http://www.asp.net/mvc/tutorials/creating-a-mvc-3-application-with-razor-and-unobtrusive-javascript

Day 6:

Complete Tutorial Set 5: Creating Custom HTML Helpers
http://www.asp.net/mvc/tutorials/creating-custom-html-helpers-vb
Complete Tutorial Set 6: Using Tagbuilder for HTML Helpers
http://www.asp.net/mvc/tutorials/using-the-tagbuilder-class-to-build-html-helpers-vb

Day 7:

Complete Tutorial Set 7: Validation Methods. Simple / iDataError / Service / Data Annotation
http://www.asp.net/mvc/tutorials/performing-simple-validation-vb
http://www.asp.net/mvc/tutorials/validating-with-the-idataerrorinfo-interface-vb
http://www.asp.net/mvc/tutorials/validating-with-a-service-layer-vb

Day 8:

Read Material Set C: Passing Data to View Master Pages
http://www.asp.net/mvc/tutorials/passing-data-to-view-master-pages-vb
Complete Tutorial Set 8: Caching Output / Dynamic Content
http://www.asp.net/mvc/tutorials/improving-performance-with-output-caching-vb
http://www.asp.net/mvc/tutorials/adding-dynamic-content-to-a-cached-page-vb
Read Material Set D: JavaScript Injection Attacks
http://www.asp.net/mvc/tutorials/preventing-javascript-injection-attacks-vb
Complete Tutorial Set 9: Unit Testing
http://www.asp.net/mvc/tutorials/creating-unit-tests-for-asp-net-mvc-applications-vb

Day 9, 10, 11, 12

Complete Tutorial Set 10: Content Management
http://www.asp.net/mvc/tutorials/iteration-1-create-the-application-vb

Day 12, 13, 14, 15

Optional Complete Tutorial Set 11: Nerd Dinner Tutorial
http://www.asp.net/mvc/tutorials/introducing-the-nerddinner-tutorial

Popular Posts

Recent Posts

Unordered List

Text Widget