symbol completion without eating existing content

Say I have something like this:


def makeRedThingsBlue(red):
    return "blue"

def foo():
    bar(red1, blue2)

and them I'm revising and I realize I want to turn that last line into bar(makeRedThingsBlue(red1), blue2).  So I position the cursor just before red1 and start typing "makeRed", the autocompleter figures it out and suggest I want to makeRedThingsBlue, I hit tab to accept, and then I have

bar(makeRedThingsBlue(), blue2)

when it completed, it ate the existing red1 text.  Is there a way to use completion without it doing that?

1 comment

Hello Kevin,

Yes. Press Enter instead of Tab.

Say I have something like this:

def makeRedThingsBlue(red):

return "blue"

def foo():

bar(red1, blue2)

and them I'm revising and I realize I want to turn that last line into

bar(makeRedThingsBlue(red1), blue2).  So I position the cursor just

before red1 and start typing "makeRed", the autocompleter figures it

out and suggest I want to makeRedThingsBlue, I hit tab to accept, and

then I have

bar(makeRedThingsBlue(), blue2)

when it completed, it ate the existing red1 text.  Is there a way to

use completion without it doing that?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.