There are following tips for coding
use #region block
example:
#region regionName
//Do your work
#endregion
Declare all the variables at the top of constructor
example:
public class UClass
{
string globalString;
public UClass()
{
int a, b , c;
string str1, str2;
}
string s; //Avoid to declare variable here
public string retVal(string s)
{
return s;
}
}
Wednesday, May 13, 2009
Short cuts for Visual Studio
File Operations
Debugging
Build
- NewProject: [CTRL + SHIFT + N]
- OpenProject: [CTRL + SHIFT + O]
- AddClass: [SHIFT + ALT + C]
- AddExisting-Item: [SHIFT + ALT + A]
- AddNewItem: [CTRL + SHIFT + A]
- OpenFile: [CTRL + O]
Debugging
- Autos: [CTRL + D, A]
- QuickWatch: [CTRL + D, Q]
- Start With Degug: [F5]
- Start Without Debug: [CTRL + F5]
- StepInto: [F11]
- StepOut: [SHIFT + F11]
- StepOver: [F10]
- Stop Debug: [SHIFT F5]
- BreakPoint: [F9]
- Remove BreakPoint: [CTRL + SHIFT + F9]
- Watch: [CTRL + D, W]
Build
- Start: [F6 or CTRL + SHIFT + B]
- Cancel Build: [CTRL + Break]
Subscribe to:
Posts (Atom)