Userdefined procedure names not auto-capitalized

Working on new editor enhancements?
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Userdefined procedure names not auto-capitalized

Post by AND51 »

Hello!

It would be nice, if the IDE also sets correct capitalization for custom procedures, not only for the native commands.
No matter if autocomplete activated or deactivated, if you avoid using it and write the procedure names manuelly (e. g. isParameter()), then the 'p' is not capitalized:

Code: Select all

Procedure isParameter(param.s)
   ; code
EndProcedure


Debug isparameter()
    ^            ^
    |            └------ typing this bracket does not correct the P within the procedure name
    └------------------- this only works with native commands
PB 4.30

Code: Select all

onErrorGoto(?Fred)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Userdefined procedure names not auto-capitalized

Post by PB »

This was requested once before. I think the thread said that because
AutoComplete does it, it wasn't warranted. Or something like that.
I mean, who types "isparameter" instead of just "ispar" and the Tab
key? :twisted:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

Me, because I work via Tight VNC on my virtual Linux Server with the PB IDE.
I must deactivate autocomplete, because the autocomplete-window always steals the IDE the focus (because of the x-window system that is used there). I have to focus the IDE after each autocomplete manually.

I don't submit this bug only to have it fixed for my special case, but for all people who have autocomplete deativated, for what ever reason.
Last edited by AND51 on Wed Jun 24, 2009 10:49 am, edited 1 time in total.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

I agree that it's a good request. I was just saying why it hasn't happened yet.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
AND51
Addict
Addict
Posts: 1040
Joined: Sun Oct 15, 2006 8:56 pm
Location: Germany
Contact:

Post by AND51 »

And I didn't know that this has been requested before.
To be honest: even if I had used the search button, I wouldn't have known any appropiate search terms.
PB 4.30

Code: Select all

onErrorGoto(?Fred)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

Here's one request, but I'm sure there was another where Freak answered,
but I can't find it now. Maybe I'm confusing it with something else, though.

http://www.purebasic.fr/english/viewtopic.php?t=34985

All I searched for was "autocomplete procedure names".
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Userdefined procedure names not auto-capitalized

Post by Trond »

PB wrote:This was requested once before. I think the thread said that because
AutoComplete does it, it wasn't warranted. Or something like that.
I mean, who types "isparameter" instead of just "ispar" and the Tab
key? :twisted:
I do, when I have another variable called isparamete. Sometimes variable names are so close together that you have to type them out, or it's only two letters more, so it's a waste of time to find the enter (or tab) key. But for me it's mostly a problem with one to three-letter variable names.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Userdefined procedure names not auto-capitalized

Post by PB »

@Trond: You know what I meant. If there are 2 or more similar names, then
of course you don't just hit Tab on the first one. :roll: You use the correct one
from the AutoComplete window.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: Userdefined procedure names not auto-capitalized

Post by Trond »

PB wrote:@Trond: You know what I meant. If there are 2 or more similar names, then
of course you don't just hit Tab on the first one. :roll: You use the correct one
from the AutoComplete window.
But often it's more work to switch to the arrow keys and select the correct name and hit enter than to just type it.
Post Reply