Reporter | Drew Noakes (drewnoakes) |
---|---|
Created | Sep 28, 2010 5:00:55 PM |
Updated | Apr 29, 2012 10:25:45 PM |
Priority | Normal |
Type | Usability Problem |
Fix versions | No Fix versions |
State | Open |
Assignee | Vitali Ermolenko (vitali.ermolenko@jetbrains.com) |
Subsystem | Context Actions |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
It feels like every time I create a property I want it to be an auto property. Yet every time I have to press (on an unknown symbol):
This seems overly long. Some kinds of programming require creation of lots of properties on objects (such as view models for MVC or WPF). I'd expect this sequence to be simpler:
The caret would remain on the property name. If I wanted a backing field, it's simple to add one from here:
Even for the times that I want a backing field, this is less keystrokes. For the majority of times I want an auto property, this is much simpler.
This doesn't allow for the 'default member body' option. Personally I rarely use that. I'd prefer the above along with a new CA on auto properties that converts an auto property to an empty property definition/default body.
- Ctrl+Enter (to show CA menu)
- Down Arrow (highlight 'create property' from CA menu)
- Enter
- <type name>
- Tab
- Tab (not sure why second enter is needed either)
- Up Arrow (have to press three times. nothing is initially selected)
- Up Arrow
- Up Arrow
- Enter
This seems overly long. Some kinds of programming require creation of lots of properties on objects (such as view models for MVC or WPF). I'd expect this sequence to be simpler:
- Ctrl+Enter (to show CA menu)
- Down Arrow (highlight 'create property' from CA menu)
- Enter
- <type name>
- Tab
The caret would remain on the property name. If I wanted a backing field, it's simple to add one from here:
- Alt+Enter
- Enter
Even for the times that I want a backing field, this is less keystrokes. For the majority of times I want an auto property, this is much simpler.
This doesn't allow for the 'default member body' option. Personally I rarely use that. I'd prefer the above along with a new CA on auto properties that converts an auto property to an empty property definition/default body.