Code::Blocks Forums

User forums => Help => Topic started by: Jewe on January 24, 2008, 11:07:06 am

Title: configure auto completion to be smarter
Post by: Jewe on January 24, 2008, 11:07:06 am
Hi,

How do I configure auto completion to do the following:

The text is for example FMModulation and by hand I change the F to an A.
Both the keys are known to the auto completion, but when pressing enter to say insert this I get.
AMModulationMModulation, this is not what I expect, So I am assuming I need to set some parameter to get this working the way I want.
Visual studio can do this, so I assume the great code blocks can also. ;)

cheers,

Jewe
Title: Re: configure auto completion to be smarter
Post by: mandrav on January 24, 2008, 03:05:51 pm
There is no configuration option for this yet.
In general, if code-completion kicks in automatically (e.g. you have typed more than the predefined number of letters), when pressing ENTER to complete it doesn't replace the rest of the word.
If, on the other hand, you manually invoke code-completion (e.g. by pressing Ctrl-Space) then when you press ENTER the whole word will be replaced.
Title: Re: configure auto completion to be smarter
Post by: Jewe on January 25, 2008, 12:27:11 pm
I have to disagree, insert a know word.
go with the cursor half way, press ctrl + space.
then I see twice the same test.

Same with changing the text to insert a different item.

Cheers,

Jewe


Info:
SVN 4771
Title: Re: configure auto completion to be smarter
Post by: mandrav on January 25, 2008, 12:56:43 pm
I have to disagree, insert a know word.
go with the cursor half way, press ctrl + space.
then I see twice the same test.

Disagree with what? What I described above? If yes, there is not much to disagree with: it is coded that way.
If you like, explain your issue better because I 'm an idiot.
Title: Re: configure auto completion to be smarter
Post by: Jewe on January 29, 2008, 01:56:25 pm
Can we cut the BS?
Made a flash film of what I am doing.
Hope this makes things a bit more clear.

[attachment deleted by admin]