I am looking for a keyboard short-cut to complete creating the default accessors for a property in a C# class.
Something like…
I start typing:
public int Id
Then I press one or more keys, and I endup with:
public int Id { get; set; }
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The shortcut is the trigger “prop”:
and you end up with: