Page 1 of 2
Editor: Autocomplete for variables
Posted: Mon Jan 09, 2006 4:55 pm
by THCM
Would be nice to have this included. At least all variables ending with .b .w .l .f etc. I don't want to use Deftype or Global to use autocompletion.
AutoComplete
Posted: Thu Feb 16, 2006 11:17 am
by Michael Vogel
Yes, agree to that!
There is an option (in preferences/editor/autocomplete/displayeditems) to include variables, but it does not work!
I do not understand, why absolutely nothing happens, when "autocomplete" is enabled, but "automatically popup" is disabled?!
I'd like to have the following two things:
* "silent autocomplete": no popup, but automatically change to the first matching word of a list when pressing (shift) space after some characters
* "auto case": the first occurence of a variable defines how it will be seen in the whole source code - BigVar.w=1 means BigVar is everytime BigVar and not bigvar or bIgvaR
Re: AutoComplete
Posted: Thu Feb 16, 2006 12:02 pm
by DarkDragon
Michael Vogel wrote:I do not understand, why absolutely nothing happens, when "autocomplete" is enabled, but "automatically popup" is disabled?!
My Shortcut: Ctrl+Space. That's normal in many IDEs, including eclipse and I like it like that.
Posted: Mon Feb 20, 2006 1:51 am
by Shannara
This have been wished twice already

Once for an earlier version of PB, and again for PB4

Reference link found @
viewtopic.php?t=18723
Autocomplete for variables (and AutoCase)
Posted: Thu Feb 23, 2006 10:13 am
by Michael Vogel
Hi
Autocomplete would help also to avoid typos! A AutoCase function would be also great to see problems very fast, e.g. you enter...
myvariable
...and while you are typing it changes to, let's say...
MyVariable
...you just feel on the right way...
Re: Autocomplete for variables (and AutoCase)
Posted: Thu Feb 23, 2006 10:46 am
by PB
If you have Global MyVariable and then type myv and hit Tab, you do get MyVariable.
Posted: Thu Feb 23, 2006 10:49 am
by DarkDragon
Uhm sorry, but a good coding style always has lower cased variables.
Posted: Thu Feb 23, 2006 11:43 am
by traumatic
DarkDragon wrote:Uhm sorry, but a good coding style always has lower cased variables.
definitely not!
Posted: Thu Feb 23, 2006 11:45 am
by DarkDragon
traumatic wrote:DarkDragon wrote:Uhm sorry, but a good coding style always has lower cased variables.
definitely not!
I know, but I just wanted to post the opinion of my teacher

.
AutoComplete variants...
Posted: Sat Feb 25, 2006 10:18 am
by Michael Vogel
Hi, just, if you like to do your own AutoComplete, you can do this with the freeware AutoHotkey and a script I wrote:
viewtopic.php?p=128768#128768
Definitely not perfect, but maybe useful to change the behaviour of the inernal AutoComplete
Michael
Posted: Sat Feb 25, 2006 4:25 pm
by Jan Vooijs
DarkDragon wrote:traumatic wrote:DarkDragon wrote:Uhm sorry, but a good coding style always has lower cased variables.
definitely not!
I know, but I just wanted to post the opinion of my teacher

.
Find a beter teacher yours is off his bonkers (or as the americans say: "He is missing one of his six-pack")
Totaly outmode, so yesteryears dear!!!
Variables MUST have mixedcase like MyVar and NOT myvar, bonkers he is...
[But on topic]
AutoComplete for variables is almost a must!! And Case change offcourse!!
[/But on topic]
Jan V.
Re: Autocomplete for variables (and AutoCase)
Posted: Sat Feb 25, 2006 4:28 pm
by Jan Vooijs
PB wrote:If you have Global MyVariable and then type myv and hit Tab, you do get MyVariable.
In what version of PB is that?? PB4b4 does not!! Or is it a switch somewhere???
Thanks,
Jan V.
Posted: Sat Feb 25, 2006 5:29 pm
by Shannara
I am wondering this myself, for I know for a fact that does not exist in PB4B3. And since his post was out before Beta 4 came out ... maybe Beta 4 supports this.
Re: Autocomplete for variables (and AutoCase)
Posted: Sun Feb 26, 2006 3:41 am
by PB
>> If you have
Global MyVariable and then type
myv and hit Tab,
>> you do get
MyVariable.
>
> In what version of PB is that?
Since v3.94.
> is it a switch somewhere?
Preferences -> AutoComplete -> Displayed Items -> Variables of the current source.
> I know for a fact that does not exist in PB4B3
Hehe, you just need to explore the Preferences more.

Re: Autocomplete for variables (and AutoCase)
Posted: Sun Feb 26, 2006 9:57 am
by Michael Vogel
PB wrote:>> If you have
Global MyVariable and then type
myv and hit Tab,
>> you do get
MyVariable.
Preferences -> AutoComplete -> Displayed Items -> Variables of the current source.
Hehe, you just need to explore the Preferences more.

Does work only with the time consuming popup menu (which sometimes offers a lot of alternatives also), without activating the popup also in the preferences it does not work (honestly)