R#6 Name Completion changes?

Hi All,

Not sure if this is a R#6 change, or if in the upgrade my settings got out of whack, but I'm seeing a difference in the behavior when naming my methods and classes.

This is especially relevant in my test classes, for example, I have a template that creates a base MSTest method that has a name.  I'll name it something like  should_init_with_model

I have a macro that turns spaces into underscores, so I'll type the name as   "should init with model"  but now with r#6 I'm getting autocomplete on my names, so that name came out as "

should AfterAssemblyInitializeEventArgs with model"  becuase init tried to autocomplete to AfterAssemblyInitializeEventArgs

Anyone have away to prevent this from happening?  We're considering backing out to 5.x until this can get sorted out; it's causing a serious problem on our team.

Thanks,

-Jason

4 comments

Hello Jason,

Could you please attach a small screencast demonstrating how this happens?
Thank you!

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

Hi All,

Not sure if this is a R#6 change, or if in the upgrade my settings got
out of whack, but I'm seeing a difference in the behavior when naming
my methods and classes.

This is especially relevant in my test classes, for example, I have a
template that creates a base MSTest method that has a name.  I'll name
it something like  should_init_with_model

I have a macro that turns spaces into underscores, so I'll type the
name as   "should init with model"  but now with r#6 I'm getting
autocomplete on my names, so that name came out as "should
AfterAssemblyInitializeEventArgs with model"  becuase init tried to
autocomplete to AfterAssemblyInitializeEventArgs

Anyone have away to prevent this from happening?  We're considering
backing out to 5.x until this can get sorted out; it's causing a
serious problem on our team.

Thanks,
-Jason
---
Original message URL:
http://devnet.jetbrains.net/message/5308637#5308637



0

I've attached a screenshot. This happens with or without the template that we use, but the most common use we have is that we call the following template:

[TestMethod]
public void $MethodName$()

{

//arrange

//act

//assert

}

When I type in the name, I would type as I said below, "should do something"  and then use a macro to replace the spaces with underscores.

Thanks again,
-Jason



Attachment(s):
r6naming.png
0

Hello Jason,

Do I understand correctly that you're using your custom macro for this purpose?
In that case, could you please send me the source code of that macro (to
andrew dot serebryansky at jetbrains dot com)? Thank you!

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

I've attached a screenshot. This happens with or without the template
that we use, but the most common use we have is that we call the
following template:


public void $MethodName$()
{

//arrange

//act

//assert

}

When I type in the name, I would type as I said below, "should do
something"  and then use a macro to replace the spaces with
underscores.

Thanks again,
-Jason
---
Original message URL:
http://devnet.jetbrains.net/message/5308831#5308831



0

I have attached the macro for reference, but only for reference. The macro does not cause the issue; I only mentioned it for reference as to why we do things this way. The real problem is that R# is trying to auto complete a method name with a class definition.
 
public void should do some work()
{
 
}
 
Everything beyond "should" is getting an auto completion. We need to disable that.


Thanks and warm regards,
-Jason



Attachment(s):
spaces macro.txt.zip
0

Please sign in to leave a comment.