Creating Auto Properties by default

Hi,

If I use the Alt-Enter shortcut followed by 'Create Property ...', is it
possible to create the Auto Property by default rather than the default
member body?

I am using Visual Studio 2008/2010 and ReSharper 5.0.1659.36.

Thanks,

Piers

0
7 comments
Avatar
Andrey Serebryansky

Hello Piers,

ReSharper should provide you with the list of available implementation options for the newly created property after you've specified property type (similar to the one on the screenshot) and you can choose 'Auto property' from the list. Let me know if this helps. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



Attachment(s):
AutoProperty.png
0

Thanks, for the quick respose Andrew.

I knew about the list of implementation options, I was hoping that there
would be a way to always select the 'Auto property' by default (some
configuration option maybe).

Piers

"Andrew Serebryansky" <andrew.serebryansky@jetbrains.com> wrote in message
news:c8a898dd827c8ccd60b2b7a2144@news.intellij.net...
Hello Piers,

ReSharper should provide you with the list of available implementation
options for the newly created property after you've specified property type
(similar to the one on the screenshot) and you can choose 'Auto property'
from the list. Let me know if this helps. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Avatar
Andrey Serebryansky

Hello Piers,

There's no such option yet, but you're welcome to put a feature request through
http://youtrack.jetbrains.net/issues/RSRP. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Thanks, for the quick respose Andrew.

I knew about the list of implementation options, I was hoping that
there would be a way to always select the 'Auto property' by default
(some configuration option maybe).

Piers

"Andrew Serebryansky" <andrew.serebryansky@jetbrains.com> wrote in
message
news:c8a898dd827c8ccd60b2b7a2144@news.intellij.net...
Hello Piers,
ReSharper should provide you with the list of available implementation
options for the newly created property after you've specified property
type (similar to the one on the screenshot) and you can choose 'Auto
property' from the list. Let me know if this helps. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



0

I would also like to have this feature. In fact, it seems that the current version of Reshaprer doesn't even give you the list of options anymore mentioned in the first reply. I need to click once more on the creation options to convert the property (which btw only works 80% of the time). Very annoying!

0

Hello Florian,

  You may adjust property style for generation in ReSharper 8.x/9.0 here ReSharper | Options | Code Editing | Members Generation | Create property from usage.

  However, there is a known issue for "Implement interface members" in ReSharper 9.0 - https://youtrack.jetbrains.com/issue/RSRP-428725.

Thanks!

0

Thanks, this option does what I need.

0

Please sign in to leave a comment.