Resharper Pet Peeve

0 comments suggest edit

One pet peeve I have is how the auto completion works regarding methods. I know this is nitpicky, but I’m wondering how other IDE’s that try to help you handle this. Suppose I type out the following and am about to hit the open parenthesis character.

public void SomeMethod

Resharper automatically adds a closing parenthesis and puts your cursor in between them.

public void SomeMethod(Cursor Is Here)

Now the reason I don’t like this is after I’m done typing the arguments, I still have to type a character (either a closing parenthesis which it absorbs or a right arrow key) and then type my open brace. I’d prefer it if it didn’t add the closing parenthesis and instead, when I did close the parenthesis, it would automatically add the open and close brace. Thus the sequence would look like:

public void SomeMethod(object someParam 
[about to type closing parens]

to

public void SomeMethod(object someParam)
{
    Braces added automatically and Cursor is Here
}

This makes more sense to me as this is where I’m going to be spending more of my time. In any case, if I’m just being a whiner, I can live with that. I haven’t played enough with Whidbey or other IDE enhancements to know how they handle this situation. It’s the little things that count.

Found a typo or error? Suggest an edit! If accepted, your contribution is listed automatically here.

Comments

avatar

2 responses

  1. Avatar for Jason Kemp
    Jason Kemp August 12th, 2004

    I can't recall exactly what Whidbey does but it's not what Resharper does.



    I don't think it's whining either. In school we're stuck with Java so I used Intellij IDEA, which adds the closing parenthesis as well. It always threw me off my typing game. I'd end up using right arrow or something to get around it.



    It was little things like that in Intellij that prevented me from using it full time for Java development. I actually used four IDEs for Java stuff: Sun ONE, Eclipse, JBuilder, and Intellij! Each one had something missing.



    Visual Studio, in contrast, is the only one I use for .NET. It doesn't have everything, but it's not missing very much. And it only gets better with VS 2005, too!

  2. Avatar for Bengal cat
    Bengal cat May 22nd, 2011

    Wow this is very Nice post thanks for sharing News.....