Editor: Autocomplete for variables
-
- Enthusiast
- Posts: 276
- Joined: Fri Apr 25, 2003 5:06 pm
- Location: Gummersbach - Germany
- Contact:
Editor: Autocomplete for variables
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.
The Human Code Machine / Masters' Design Group
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
AutoComplete
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
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
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: AutoComplete
My Shortcut: Ctrl+Space. That's normal in many IDEs, including eclipse and I like it like that.Michael Vogel wrote:I do not understand, why absolutely nothing happens, when "autocomplete" is enabled, but "automatically popup" is disabled?!
bye,
Daniel
Daniel
This have been wished twice already
Once for an earlier version of PB, and again for PB4
Reference link found @ viewtopic.php?t=18723


- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Autocomplete for variables (and AutoCase)
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...
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)
If you have Global MyVariable and then type myv and hit Tab, you do get MyVariable.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
AutoComplete variants...
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
viewtopic.php?p=128768#128768
Definitely not perfect, but maybe useful to change the behaviour of the inernal AutoComplete
Michael
-
- Enthusiast
- Posts: 196
- Joined: Tue Sep 30, 2003 4:32 pm
- Location: The Netherlands
Find a beter teacher yours is off his bonkers (or as the americans say: "He is missing one of his six-pack")DarkDragon wrote:I know, but I just wanted to post the opinion of my teachertraumatic wrote:definitely not!DarkDragon wrote:Uhm sorry, but a good coding style always has lower cased variables..
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.
Life goes to Fast, Enjoy!!
PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!
AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!
AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
-
- Enthusiast
- Posts: 196
- Joined: Tue Sep 30, 2003 4:32 pm
- Location: The Netherlands
Re: Autocomplete for variables (and AutoCase)
In what version of PB is that?? PB4b4 does not!! Or is it a switch somewhere???PB wrote:If you have Global MyVariable and then type myv and hit Tab, you do get MyVariable.
Thanks,
Jan V.
Life goes to Fast, Enjoy!!
PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!
AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!
AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
Re: Autocomplete for variables (and AutoCase)
>> 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.
>> 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.

I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: Autocomplete for variables (and AutoCase)
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)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.