Reporter | James Manning (James.Manning) |
---|---|
Created | Nov 9, 2011 8:23:38 PM |
Updated | Apr 16, 2018 10:55:56 AM |
Resolved | Apr 16, 2018 10:55:56 AM |
Subsystem | Quick Fixes |
Assignee | Alisa Afonina (alisa.afonina) |
Priority | Normal |
State | Obsolete |
Type | Usability Problem |
Fix version | Backlog |
Affected versions | 6.1 |
Fixed In Version ReSharper | Undefined |
VsVersion | All Versions |
JetBrains ReSharper 6.1 EAP C# Edition Pre-Release
Build 6.1.0.11493 on 2011-11-04T16:52:08
Visual Studio 10.0.40219.1.
After adding a new member variable to a class that will be written to by methods in the class itself and just read by other classes (the moral equivalent of public property with private setter), I had added just the member variable. The quick fixes available were 'Comment unused field' and 'Initialize field from constructor parameter', but not 'Generate getter'.
After I added something that writes to that member variable (in my case, by using the 'Initialize field from constructor parameter' quick fix, even though I didn't actually want that), then the 'Generate getter' quick fix becomes available.
I'd like that to be available sooner (even if nothing writes to the member variable yet), since I know I'm about to go back to a method that will start writing to this new member variable, but want to add the public getter for it before going back to that method and doing the write logic.
Build 6.1.0.11493 on 2011-11-04T16:52:08
Visual Studio 10.0.40219.1.
After adding a new member variable to a class that will be written to by methods in the class itself and just read by other classes (the moral equivalent of public property with private setter), I had added just the member variable. The quick fixes available were 'Comment unused field' and 'Initialize field from constructor parameter', but not 'Generate getter'.
After I added something that writes to that member variable (in my case, by using the 'Initialize field from constructor parameter' quick fix, even though I didn't actually want that), then the 'Generate getter' quick fix becomes available.
I'd like that to be available sooner (even if nothing writes to the member variable yet), since I know I'm about to go back to a method that will start writing to this new member variable, but want to add the public getter for it before going back to that method and doing the write logic.