Auto-complete of attributes of enum type
Hi,
one thing is kinda annoying about intelli-sense done by R#.
When i'm assigning value to a property which is "enum", VS used to offer the enum by default while R# doesn't do that.
For example:
ParentForm.WindowState = FormWindowState. <- this should be pre-selected by intellisense.
Same should be done on method parameters (e.g. MessageBox.Show(...))
Am i missing some setting? If not, could you please consider it as a feature improvement? :)
Thanks!
Vlad.
Please sign in to leave a comment.
Vlad wrote:
+1 for that
--
by Peter Sulek in 29. 5. 2008 19:48:22
XanaNews 1.18.1.6
Hello Vlad,
Is it C# or VB.NET? If C#, how can we enable this mode in VS? I couldn't
find this recently. If VB, we don't alter autopopup completion for this language.
Sincerely,
Ilya Ryzhenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
V> Hi,
V> one thing is kinda annoying about intelli-sense done by R#.
V> When i'm assigning value to a property which is "enum", VS used to
V> offer the enum by default while R# doesn't do that.
V> For example:
V> ParentForm.WindowState = FormWindowState. <- this should be
V> pre-selected by intellisense.
V> Same should be done on method parameters (e.g. MessageBox.Show(...))
V>
V> Am i missing some setting? If not, could you please consider it as a
V> feature improvement? :)
V> Thanks!
V> Vlad.
Hello,
The completion list has to include more than just enum members, as you might
want to assign another property value or a method call return value to that
property.
R# has Smart Completion to filter the list down to one-step members (CtrlAltSpace,
or see your particular keyboard gesture in the main menu). It's useful when
you're completing something that has right the expected type.
—
Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”
Would it be possible for RS to treat pressing "tab" at a place where an enum is expected as a request to trigger exection of a specific enum value from the enum type? This way, if I hit tab, then the enum Type name would be inserted, complete with the "." and intelisense could populate with the list of available enums.
I just started using resharper and this is probably most missed feature from VS for me.
In VS I could do:
if (form.DialogResult == <- and here I would see list of all possible enum option for DialogResult enum type. This list would show up just after pressing space after =
This worked anywhere Enum was expected.
+1. I really miss this feature from the VS intellisense.