

Something either in current documents or all open documents or entire project
#Visual studio hotkeys and tricks code

Write your getter and setters then just type this prop + But if you don't have such a mass volume project and just don't want to.On in Visual Studio 2008 called T4 or Text Template Transformation Toolkit. Although i would recommend you some refactors like Resharper which can do itįor you or some code generators like Code Smith and also give a try to inbuilt.Generating dummy getter and setters or properties is also a pain in big.For uncommenting the code just press Ctrl+K+U,this will.Just select the code to be commented and pressĬtrl+K+C,this will comment your code block.There are much cooler tricks when using a refactor like Resharper.I willĭiscuss those tricks later this month in one of my posts.Just press enter to include the required namespace.Shortcut key to automatically get intellisense for probable namespaces. (Remember this is Ctrl+ if you get confused) If you want to just format the selected piece of code then just press.This works not only in C# and VB code behind but it works well in aspx.This shortcut helps me to write beautiful and decorative code which is easy.Automatic Text Indentation and Formatting.Then the shortcut to achieve this is Ctrk+M+O or Ctrl+M Ctrl+O.This isĪlso a very handy shortcut which helps a lot in development. If you want to collapse all your code units or blocks to their definitions.Just go to the beginning or end of the method or property or any code blockĪnd hit the shortcut it will expand or collapse the code block comparing to its.But now with this shortcut i collapse one method as soon as it is finished.Method or property because they were looking similar.

On a large piece of code i always get confused and make some changes in other This nice little shortcuts has saved me a lot of time.Whenever i am working.Expanding and Collapsing the code units.Press Ctrl+X, this is not actually delete but its similar toĬut if you do Ctrl+X on current line and go to some other place in your code andĭo Ctrl+V then it will paste the same line there. For Deleting a line just go to the start of the line and.For Pasting a line just go to the start of the line and.Line and press Ctrl+C,there is no need to select anything For Copying a line in the IDE just go to the start of the.Its sometimes really helpful and more appealing for developers to work in.Alt+Shift+Enter is the shortcut to enter to fullscreen mode in Visual Studio.
#Visual studio hotkeys and tricks full
