Page 1 of 1
Userdefined procedure names not auto-capitalized
Posted: Wed Jun 24, 2009 2:38 am
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
Re: Userdefined procedure names not auto-capitalized
Posted: Wed Jun 24, 2009 10:33 am
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?

Posted: Wed Jun 24, 2009 10:37 am
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.
Posted: Wed Jun 24, 2009 10:39 am
by PB
I agree that it's a good request. I was just saying why it hasn't happened yet.
Posted: Wed Jun 24, 2009 10:48 am
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.
Posted: Wed Jun 24, 2009 10:52 am
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".
Re: Userdefined procedure names not auto-capitalized
Posted: Wed Jun 24, 2009 7:18 pm
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?

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.
Re: Userdefined procedure names not auto-capitalized
Posted: Wed Jun 24, 2009 9:15 pm
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.
Re: Userdefined procedure names not auto-capitalized
Posted: Thu Jun 25, 2009 8:42 am
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.