Reporter | 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?