The Most Useful Keyboard Shortcuts for .NET Developers
Posted: August 20th, 2011 | Author: Mahdi Taghizadeh | Filed under: .NET General, Cheatsheet, ReSharper, Visual Studio, Windows | 7 Comments »A few days ago I blogged about a .gitignore file for those developers with a focus on .NET technology and tools and today I want to share a small cheatsheet with you I called it “The Most Useful Keyboard Shortcuts for .NET Developers”.
You have probably seen many cheatsheets and blog posts talking about useful shortcuts to use in Windows, Visual Studio and etc.; Today I came up with an idea to create a single cheatsheet with the most useful shortcuts which a .NET developer can use in his/her daily coding stuff so I ended up creating a document containing some useful shortcuts for Windows 7, Visual Studio 2010 and ReSharper 6. You can view and download this document/cheatsheet on Google Docs.
Just like what I had requested for .gitignore file, please send me your suggestions as a comment on this post or to @mahdi on Twitter. This way I can complete/enhance this cheatsheet to be more useful.








- Shift Delete – it should be noted that it’s just a regular cut (exactly the same as ctrl-x) Visual Studio just has the awesome behaviour of if nothing is selected it performs a line cut. Same thing happens for copy. (Note though: VS2010 stuffed up the marker ends up after the operation – putting it at the start of the line. I wrote an extension that fixes most of these cases – http://visualstudiogallery.msdn.microsoft.com/0bed93d6-2d4b-4661-a426-7071a2b386e7 )
- F12 but no Shift F12?
- Ctrl Space & Ctrl . Both fundamentals (but it’s surprising how many people don’t use them)
@Chris
Thank you! I updated it with some of your cool suggestions :-)
Ctrl – (control minus or dash) will go back to your previous place. After using F12 to go to definition.
Ctrl-M-M will expand or collapsed based on where the cursor is. Usefully when everything is collapsed and you just want to expand the one section.
For Reshaper
Ctrl-R-F takes a local variable and makes it a field.
Ctrl-R-M takes selected code and makes a new method
Ctrl-R-P makes a local or member variable a parameter for the method.
@David
Thank you! Added your suggestions :-)
This cheat sheet has been added to DevCheatSheet.com – http://devcheatsheet.com/cheatsheet/1949/
@Tim
Thank you :-)
Hi Mahdi,
This is so useful. Thanks for taking the time to create it and share it!
Ed