Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

222
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda