Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

221
Views
In Visual Studio, is there a shortcut to scaffold out all properties of a class for assignment?

I'm looking for a keyboard shortcut or a template to scaffold out class property completion.

For instance, just say I've got the following class (don't focus on the class itself, I picked this one because it only had 5 properties) ...

public partial class Country
  {
      public string ISOCountryCode { get; set; }
      public string EnglishShortName { get; set; }
      public string FrenchShortName { get; set; }
      public string Alpha2 { get; set; }
      public string Alpha3 { get; set; }
  }

What I'd like is after instantiating the class, and pressing 2 dots and a tab (for example) I get the properties to populate

eg, I type...

Country c = new Country();

I press some key combination, and bingo I get...

c.ISOCountryCode = null ; 
c.EnglishShortName = null ; 
c.FrenchShortName = null ; 
c.Alpha2 = null ; 
c.Alpha3 = null ; 

Does such a shortcut exist, I've been looking for one everywhere. Some of my classes have heaps of properties and having a shortcut to scaffold out the left hand side would save me a ton of time.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!