Today, I am going to share my experience with Visual Studio and how to save keystroke during the development.
Why I am writing this post because of recently I had attended Global Azure BootCamp and that I had enjoyed and learned lot of thing but one of the things was inspired me. It's a Mahesh Dhola session and he had one thought about save keystroke.
So that I had decided to write a post on this and share this good thought to others.
I know experienced developer know the shortcuts and some tricky magic with Visual Studio but this is help for beginner or newbie to Visual Studio.
Let's start one magic and save keystroke during development on visual studio.
There are many magic shortcuts on Visual Studio. Please visit for more shortcuts http://visualstudioshortcuts.com/2015/
Hope this post will help to someone and also share your thoughts in a comment so I will incorporate into this post and that will help to others.
Why I am writing this post because of recently I had attended Global Azure BootCamp and that I had enjoyed and learned lot of thing but one of the things was inspired me. It's a Mahesh Dhola session and he had one thought about save keystroke.
So that I had decided to write a post on this and share this good thought to others.
I know experienced developer know the shortcuts and some tricky magic with Visual Studio but this is help for beginner or newbie to Visual Studio.
Let's start one magic and save keystroke during development on visual studio.
- When you are creating class also need to write a constructor. So for constructor you just need to write "ctor" and press tab key so constructor will ready for you.
Before "ctor" After Public Student(){ }
- When you want to create a new property you just need to write "prop" and press twice tab key and property ready for you.
Before "prop" After public TYPE NAME { get; set; }
- When you want to write try .. catch block then just write try and press tab key twice.
Before "try" After try { } catch (Exception) { throw; }
- If you want to write any block statement like if, switch, for etc. so visual studio have one interesting feature "Surround with" just press CTL + K + S and open a dialog to choose your block statement and it will prepare skeleton for you.
- If you want to write any HTML tag then just you need to right <input and press tab key twice and it will prepare skeleton for you.
<input
- When you want to open and collapse any code of block just press CTL + M twice.
CTL + M twice
- When you want to a proper structure in a format, just press CTL + K + D.
CTL + K + D
- When you want to find closing brackets just press CTL + } (end bracket).
CTL + }
- When you want to move your cursor back just press CTL + - (minus).
CTL + - (minus)
- When you want to move your cursor forwards just press CTL + Shift + - (minus).
CTL + Shift + - (minus)
- When you want to comment a code block just press CTL + K + C
CTL + K + C
- When you want to uncomment a code block just press CTL + K + U
CTL + K + U
There are many magic shortcuts on Visual Studio. Please visit for more shortcuts http://visualstudioshortcuts.com/2015/
Hope this post will help to someone and also share your thoughts in a comment so I will incorporate into this post and that will help to others.
0 comments:
Post a Comment