I'm having a hard time trying to really like RS4.

I'm sort of disappointed with RS4 so I'm hoping it's my configuration that's at fault and not RS4 misbehaving. For example, take the following line of code:

string localHostName = Dns.GetHostName();

1. When I hover the mouse over the string keyword RS4 displays the tooltip "Use implicitly typed local variable declaration". It then allows me to change it to var. What's that all about? I want a string not a var. I know var has value in Linq but I want to preserve my string and not have RS4 tell me to use something else? Can I tell RS4 not to adopt that data type recommendation? Unless someone can give me a knockout punch as to what I would want to use var and not string, I'd like to keep using what I'm most familiar and comfortable with.

2. Intellisense. Have I lost something somewhere (build 733, I think) but I seem to have completely lost all Intellisense. For example, I could enter string. and get the list of exposed methods and properties. Now I get nothing, just a red squiggly line showing a syntax error. No Intellisense, nothing.

EDIT: I found the reason for this. On the RS4 menu: Options -> Intellisense -> Completion Behavior the tickboxes to enable it had all been unchecked. I know this was not me as I always use Intellisense. Just thought you'd like to know. Does RS4 clobber the configuration settings in some way?

I sort of find myself being thrown back to the days of VB3. Is it my installation or configuration that's at fault. I've tried searching the obvious configuration settings but nothing seem out of line with what I had previously. I'm just worried that I'm paying a heavy price for being an early adopter. Could someone tell me if it's my setup that's at fault.

Tks. Peter.

2 comments
Comment actions Permalink

Hello Peter,

1. Hit Alt-Enter on the var suggestion, select last item "Change severity..."
and in the following dialog select "Do not show". You will not see var hints
everywhere any more. There will be suggestion sometimes when type is explicitly
specified in initialization expression, which you can turn off too, if you
want.

2. What is code around the "string." when you have problems? Does the problem
manifests itself if you try it in the following code:
void foo()
{
string.
}

Thanks.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> I'm sort of disappointed with RS4 so I'm hoping it's my
IR> configuration that's at fault and not RS4 misbehaving. For example,
IR> take the following line of code:
IR>
IR> string localHostName = Dns.GetHostName();
IR>
IR> 1. When I hover the mouse over the string keyword RS4 displays the
IR> tooltip "Use implicitly typed local variable declaration". It then
IR> allows me to change it to var. What's that all about? I want a
IR> string not a var. I know var has value in Linq but I want to
IR> preserve my string and not have RS4 tell me to use something else?
IR> Can I tell RS4 not to adopt that data type recommendation? Unless
IR> someone can give me a knockout punch as to what I would want to use
IR> var and not string, I'd like to keep using what I'm most familiar
IR> and comfortable with.
IR>
IR> 2. Intellisense. Have I lost something somewhere (build 733, I
IR> think) but I seem to have completely lost all Intellisense. For
IR> example, I could enter string. and get the list of exposed methods
IR> and properties. Now I get nothing, just a red squiggly line showing
IR> a syntax error. No Intellisense, nothing.
IR>
IR> I sort of find myself being thrown back to the days of VB3. Is it my
IR> installation or configuration that's at fault. I've tried searching
IR> the obvious configuration settings but nothing seem out of line with
IR> what I had previously. I'm just worried that I'm paying a heavy
IR> price for being an early adopter. Could someone tell me if it's my
IR> setup that's at fault.
IR>
IR> Tks. Peter.
IR>


0
Comment actions Permalink

Ilya,

Thanks for the feedback. I never knew about inspection analysis options in the configuration dialog. Leastways, I knew it was there but I never paid close attention to it. As we used to say in South Africa, if it was a snake it would have bitten me! I've now suppressed the hint so I'm happy again.

I updated my original thread as I noticed for some reason that my Intellisense settings were disabled for some reason in the configuration dialog. I've turned them back on and Intellisense is now working again.

Sorry if I came across as being in bad mood. I got off to a bad start when I got in to the office and I took the cowardly way out and took a swipe at RS4. Needless to say, I am happy with RS4 and looking forward to the production release when I can buy the licence. I'm not sure if my 3.1 licence gets me a cheaper upgrade option but I'll sort that out when the date is announced.

Thanks again. RS really does rock!

0

Please sign in to leave a comment.