Page 1 of 1

Autocomplete based on casing

Posted: Sun Oct 06, 2013 7:21 pm
by nblackburn
I like to code in lower case or camelCase as I feel the language is more readable to me that way. It would be nice for the IDE to detect this and suggest completions in that case.

Considering the language is case insensitive I think this would be a great option to have and give the developer more flexibility instead of being forced to code in a very specific way (PureBasic doesn't follow the standards of Basic so why should we follow it's non-standard standards, just saying hehe 8) ).

Code: Select all

procedure = procedure != Procedure
Procedure = Procedure

Re: Autocomplete based on casing

Posted: Mon Oct 07, 2013 4:10 am
by PB
Fred wrote:either case sensitive, either not. Providing both in the same programming language is not an option.

Re: Autocomplete based on casing

Posted: Mon Oct 07, 2013 1:50 pm
by nblackburn
PB wrote:
Fred wrote:either case sensitive, either not. Providing both in the same programming language is not an option.
I don't mean suggesting both, i mean if you choose to code in lowercase then instead of it autocompleting in sentence case it adjusts to your coding style. Why is that such a bad idea when we have the option to do this anyway, just not with autocomplete?.

Re: Autocomplete based on casing

Posted: Mon Oct 07, 2013 2:25 pm
by PB
> instead of it autocompleting in sentence case it adjusts to your coding style

Oh, I see what you mean now. Yes, AutoComplete always uses the case shown
in the list, even if you type a command in all lower-case. Gotcha. But what
you're asking is a bit like mind-reading: how will the IDE know what case you
want to use? You could camel-case one word and then lower-case the next.
What's a poor IDE to do? :)

Re: Autocomplete based on casing

Posted: Mon Oct 07, 2013 3:11 pm
by Shield
Just put every single keyword in a file and then add it as your custom keyword list.
Correct case completion for you, sir, already built in. :wink: