only My site

Monday, July 7, 2008

VS 2008 Shortcuts & Code snippets

Build
======

Ctrl + Shift + B - Build Solution
Ctrl + Attach to Process

Debugging
===========
F9 - Break point / Toggle Breakpoint
Ctrl + Shift + F9 - Clear All Breakpoints
Ctrl + B + T - Book mark
Ctrl + B + E - Enable Bookmark
Ctrl + B + C - Clear all Bookmarks
Ctrl + B + P - Previous Bookmark
Ctrl + B + N - Next Bookmark

F2 / Crtl + R + R - Rename function with preview

Edit
=====
Cycle Clip Board ring
Ctrl + Shift + V

Ctrl + F - Quick find (Current Document)
Ctrl + Shift + F - Find in files (Entire solution)
Ctrl + Shift + H - Find & Replace
Alt + F12 - Find Symbol
F8 and SHIFT + F8 - Forward and backwards in your search results

Ctrl+E,D - Format Document
Ctrl+E,F - Format Selection or Current cursor line
Ctrl+Shift+U - Make Uppercase
Ctrl+U - Make Lowercase

Comment Selection (Ctrl+E,C)
28. Uncomment Selection (Ctrl+E,U)
Delete Horizontal White Space (Ctrl+E, \)
24. View White Space (Ctrl+E,S)
25. Word Wrap (Ctrl+E,W)
26. Incremental Search (Ctrl+I)


Crtl + Up Arror - Scroll line Down
Crtl + Down Arror - Scroll line Up

Code Snippets
=============

Ctrl + K, Ctrl + X

Create XML file and sinppet to add snippet using Ctrl + k , ctrl _ x.

Add your code in CDATA Tag and save the XML files as "FileName.snippet" Format.

Use Snippet Manager (Ctrl + k, Ctrl + B) to Import the snippet.

Create own Code snippets inside VS
http://msdn.microsoft.com/en-us/library/bb245788.aspx

No comments: