+ 13

Visual Studio C# Shortcuts

VISUAL STUDIO SHORTCUTS I recently discovered a neat little shortcut for Visual Studio that can take some of the tedium out of coding the fundamentals. Let's say for example, I want to create some properties. A quick way to do this would be to type 'prop' (without quotes) and then press Tab twice. The 'Tab' key is important. What this does is fill in the code for you and save you the hassle of typing it out. All you have to do is provide the type and name, which you can switch between with the Tab. So, for example: 'prop' + Tab twice, is the same as: public int MyProperty { get; set; } Try it and see it in action. It's awesome. It also works on 'for' and 'while' loops as well: 'for' + Tab twice, is the same as: for (int i = 0; i<length; i++) { } This has been a great discovery and can really improve workflow.

22nd Sep 2017, 12:24 AM
Bagshot
Bagshot - avatar
4 odpowiedzi
+ 12
Very useful thing. Thank you for sharing this with us.
22nd Sep 2017, 2:07 AM
Vukan
Vukan - avatar
+ 4
Привет) У меня к тебе вопрос, вот какой язык самый легкий по твоему?
30th Sep 2017, 6:25 PM
Петр(RUS)
Петр(RUS) - avatar
+ 2
👍 well hint
22nd Sep 2017, 8:55 PM
Юрий Валерьевич
Юрий Валерьевич - avatar
+ 1
самый лёгкий и лучший это Java
11th Feb 2018, 12:59 PM
Patimat Asadueva