casinola.blogg.se

How to insert line visual studio 2017 shortcut
How to insert line visual studio 2017 shortcut








how to insert line visual studio 2017 shortcut

  • Create try finally block using tryf and press TAB twice.
  • For creating void main method use svm and press TAB twice.
  • Create auto implemented properties with 'get' accessor and private 'set' accessor using propg and press TAB twice.
  • For creating static int Main (string args), use sim and press TAB twice.
  • For creating a region, use reg and press TAB twice.
  • For creating Unit test method, use testm and press TAB twice.
  • For creating unit test class in MVC application, use test and press TAB twice.
  • how to insert line visual studio 2017 shortcut

    For creating MVC action method, use mvcp and press TAB twice.For creating an MVC action method use mvc4 and press TAB twice.

    how to insert line visual studio 2017 shortcut

    In this article, I am going to discuss some more tricks that can insert code snippets just by few keystrokes. Developer Productivity By Visual Studio Shortcuts.To see my previous article 1, here's the link: Spending time in these types of codes are waste of time and energy. For example, you are writing classes for your domain or adding properties or defining constructors or putting try block and lot more where we just need to write the code in similar pattern. While writing code we need to follow certain rules and constructs that also becomes very repetitive. In article 1, we discussed some shortcuts that helps a lot while writing and reviewing code in day to day work. This is in continuation with article 1 where I discussed about how one can be more productive with Visual Studio.










    How to insert line visual studio 2017 shortcut