How do I autocomplete an object constructor with default values

When I initialize a new object of a class that has a constructor that accepts some parameters how does resharper can autocomplete this with default values e.g

var car = new Car(colour: string.empty, year:0, doors:0 etc....)

 

1 comment
Comment actions Permalink

Hello Antonis Panagi, thank you for your question. Unfortunately, ReSharper doesn't seem to provide that functionality right now. I can only suggest using ReSharper complition (can also be called by "Ctrl+Space") and choosing the first value or the most appropriate value from the list. You can also submit a feature request to our bug tracker. On the tracker, others can see your request and add their vote if they find such a tool would be useful. It helps our team to better understand which features/tools our users are eager for. Thank you!

0

Please sign in to leave a comment.