Page 1 of 3
Autocomplete
Posted: Thu Dec 28, 2006 11:08 pm
by Kaeru Gaman
It would be nice, if the Autocomplete-dropdown would close when the last letter is typed.
at the moment its sometimes not that convenient to edit lines that include names listed in the autocomplete.
additionally:
autocomplete should only set upper/lower case when the inserted command is complete.
example:
Try to name a Constant "#Sub_Division". when you type "sub",
the autocomplete will complete it to "#SUB" and ignore, that you will type further.
so you'll have to complete the new name, and then re-type the beginning.
I hope, that is not too complicated to solve...
I know, you, Freak, have a lot of work to do and a lot of serious tasks to solve...
but this little correction will optimize the conveniance of using the autocomplete..

Posted: Thu Jan 11, 2007 7:04 pm
by Kaeru Gaman
any remark, if you even think about it?
Posted: Thu Jan 11, 2007 7:10 pm
by freak
I have put it on the 4.1 todo list for the IDE updates.
I cannot give any guarantees though.
Posted: Thu Jan 11, 2007 7:12 pm
by Kaeru Gaman
ok thnx for reply

Posted: Tue May 22, 2007 5:25 pm
by freak
Done for 4.1
Posted: Tue May 22, 2007 8:57 pm
by Kaeru Gaman
thnx a lot

Posted: Tue May 22, 2007 9:47 pm
by AND51
I have also a suggestion:
Imagine you have got a line containing strings like this:
Code: Select all
Debug LCase("My name is "+|name$+" and yours?")
The | should be the cursor.
Sometimes, you have got to insert a string after you've completed the line, so imageine, we want to include Chr(9)+"beep" which does not make sense, but it shows my problem (currently, I have no better exmaple, sry).
When you type " for the first time, auto-complete destroys the upper-/lower-case-writing of the following words:
Code: Select all
Debug LCase("My name is "+Chr(9)+"|name$+" And yours?")
Now, it cnsiders
name$+ as string and
And yours?") as additional code. As you can see, the word "and" is being interpreted as operator 'And'.
Can you somehow fix this problem? Maybe the IDE can wait until the cursor leaves the line (line break or user clisk "compile")...
Posted: Tue May 22, 2007 9:56 pm
by PB
@AND51: I don't see how the IDE can prevent this, because it can't read your
mind and know if "And" is going part of a string, or whether it's a keyword.
Posted: Tue May 22, 2007 10:03 pm
by AND51
Oh... You're right.
Any idea, how I can solve this problem? My workaround: Bringing the rest of the line into a new line to prevent upper-/lower-case destroying. But this is not very comfortable.
Posted: Tue May 22, 2007 10:24 pm
by PB
Just put a comment mark in front of the string to retain its case, then just
remove it after editing; it saves you moving the string to another line.
Posted: Tue May 22, 2007 11:29 pm
by AND51
Thanks for this idea!

Posted: Wed May 23, 2007 10:27 am
by PB
I've been doing it for years.

Posted: Wed May 23, 2007 11:41 pm
by aaron
How about the IDE not changing the capitalization of words until the cursor moves from that line?
Posted: Wed May 23, 2007 11:51 pm
by AND51
That's hat I suggested before!
There are 2 situations in which the line must be capitalized:
1.) Cursor moves from that line
2.) EditorGadget looses focus (e. g. when clicking on "Compile/Run")
Posted: Wed May 23, 2007 11:55 pm
by freak
The capitalisation is helpful to indicate that something was typed correctly.
If it is only done when moving from the line, this becomes useless