Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-469010: Add the ability to fill object initializer

$
0
0
Reporter Jérémy VIGNELLES (cube45) Jérémy VIGNELLES (cube45)
Created Mar 31, 2018 7:13:28 PM
Updated Apr 12, 2018 5:30:55 PM
Subsystem Generate
Assignee Andrew Karpov (andrew.karpov)
Priority Normal
State Submitted
Type Feature
Fix version 2018.2
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

I'd like to have a shortcut to be able to generate initialization code. For example

var something = new MyClass {
   // Caret here+ Alt+Enter
};

based on this class definition :

public class MyClass {
    public int A {get;set;}
    public int B {get;set;}
}

would generate :

var something = new MyClass {
   A = /*Let the user enter a value here*/,
   B = /*Let the user enter a value here*/
};

What do you think about it? would it be possible?


Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>