

Shortcut to create properties in Visual Studio?
source link: https://www.codesd.com/item/shortcut-to-create-properties-in-visual-studio.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Shortcut to create properties in Visual Studio?
I have seen some people creating properties in C# really fast, but how did they do it?
What shortcuts are available in Visual Studio (currently using Visual Studio 2010) to create properties?
I am using C#.
For example,
public string myString {get;set;}
You could type "prop" and then press tab twice. That will generate the following.
public TYPE Type { get; set; }
Then you change "TYPE" and "Type":
public string myString {get; set;}
You can also get the full property typing "propfull" and then tab twice. That would generate the field and the full property.
private int myVar;
public int MyProperty
{
get { return myVar;}
set { myVar = value;}
}
Related Articles
Highlight members and properties in Visual Studio
Is there a shortcut to stop describing in Visual Studio?
Macros to Create Commands and Properties in Visual Studio 11
Creating Class Properties in Visual Studio
C # Windows Forms Application Created by Using Visual Studio 2012 Does Not Work on Windows XP
Creating tables in Visual Studio 2013
Error creating bitmap from Bitmapsource.create from C # Visual Studio 2013 WPF
Window Font Properties in Visual Studio 2010
The Visual C # 2008 compiler from Microsoft could not be created. Reinstall Visual Studio
How to create a new Visual Studio solution on the desktop using the context menu?
Is it possible to set MSBuild properties from Visual Studio?
Is it possible to open a * .sln file created using Microsoft Visual Studio 2008 in MS VS 2005?
Unable to create tables in Visual Studio 2010 by getting 'The specified module could not be found (exception Hresult: 0x800700E)' error
importing XML data from a file on my system to an sql database created in Microsoft Visual Studio 2010
Recommend
-
49
Google put in place a few restrictions when it comes to apps and games on Android TV. You either download the app through the Play Store on the TV itself o... by Rita El Khoury in Android TV, App Reviews, Applications, Reviews
-
6
How to create a Visual Studio extensibility project that is compatible with VS 20...
-
13
Exclude automatic properties from code coverage in Visual Studio 2015 advertisements I just upgraded a bunch of projects to VS2015/C#6.
-
9
Introduction Visual Studio Code is a code editor from Microsoft available on Windows, Linux, and macOS. It offers extensions that you can install through the
-
7
Caps as a Modifier allows you to use the Caps Lock key as a shortcut modifer inside Visual Studio, just as you would use Ctrl, Shift, or the Alt
-
11
Keyboard shortcut in Visual Studio to open a file in your solution? advertisements Is there a key shortcut in V...
-
10
How to Create a Printer Shortcut on Windows 10 By MUO Staff Published 5 hours ago Here's a quick way to create a printer shortcut on the taskbar or desktop in Windows 10 and m...
-
7
A Shortcut to Create a Markdown Link from Safari in macOS April 13, 2022 Productivity
-
3
How to create a shortcut to open Internet Explorer 11 in Windows 11...
-
5
Create a Basic Shortcut using App Intents // Written by Jordan Morgan //...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK