1

Say I have a data model and it's got a bunch of properties. Is there a quick way to autocomplete the initialization like....:

var myobj = new MyObject
{
    A = ...,
    B = ...,
    .
    .
    Z = ...
};

So I can fill in the blanks on the properties but don't have to go on typing A...B...C... and so on?

tarrball
  • 2,123
  • 3
  • 23
  • 34
  • 1
    @DaPosto I think that's what he's trying to do. Resharper for example has this functionality, but I'm not sure if Visual Studio can do this or not. It would be quite helpful. – jpaugh78 Oct 20 '16 at 18:26
  • are you talking about creating the class or just populating the properties for an existing class? – Matthew Whited Oct 20 '16 at 19:03
  • @MatthewWhited populating properties for the existing class, rather than having to type each one out in the initialization. – tarrball Oct 20 '16 at 19:32
  • 1
    I don't know of anything built in to do that. The good news is the number of possible options gets shorter as more properties are used. You should be able to use the normal intellisense shortcuts. http://stackoverflow.com/questions/3640544/visual-studio-keyboard-shortcut-to-display-intellisense – Matthew Whited Oct 20 '16 at 19:49

0 Answers0