Visual Studio 2008 Tips and Tricks
Osama | July 16, 2009So I am back again with another workshop summary. This was conducted by Mr. Adil Mughal. The title was Visual Studio Tips and Tricks.
Though we write code to run our project but we usually dont focus on how organized our code is. I am presenting few points which I learned from the workshop. Though these wont affect the working of project but increase the productivity of a project.
Understanding & Navigating
- Swithc among Tabs (Ctrl + Tab)
- Go to function’s or object’s definition (F12)
- Find all references of an object or method (Shift + F12)
- Comments and Uncomments (Ctrl + K, C & Ctrl + K, U)
- Switch to Designer/Code in web apps (Shift + F7/F7)
- Format document/Selction (Ctrl + K,D/Ctrl + K, F)
- Line Number/Go to Line # (Ctrl + G)
- Collapse to Definition (Ctrl + M, O)
- Organize Using(s)-> This will remove unused “Usings” from the code and can sort out them.
Modifying & Writing
Refactoring
- Encapsulate Fields (Ctrl + R, E)
- Extract Method (Ctrl + R, M)
- Extract Interface (Ctrl + R, I)
- Promote Local Variable (Ctrl + R, P)
- Reorder Variable (Ctrl + R, E)
Code Snippet
- Insert Code Snippet (Ctrl + K, X)
- Surround with Snippet (Ctrl + K, S)
- Code Snippet Manager (Ctrl + K, B)
I hope these will help others while writing their code.
Feel free to contact me










