Enable Case correction doesn't work on custom functions

Post bugs related to the IDE here
Joubarbe
Enthusiast
Enthusiast
Posts: 555
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Enable Case correction doesn't work on custom functions

Post by Joubarbe »

File -> Preferences -> Editing -> Enable Case correction. This feature doesn't work as intended (or as it should).

If you type a built-in function, it works; if using a custom one, it doesn't. It's annoying to always juggle with the Shift key.
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: Enable Case correction doesn't work on custom functions

Post by Bisonte »

Select Menu : File -> Preferences -> Editor -> Coloring -> CustomKeyWords and enter the correct Words... The Case correction work for the words in this list.

I don't would call it a bug... only a misunderstood behaviour...
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
Joubarbe
Enthusiast
Enthusiast
Posts: 555
Joined: Wed Sep 18, 2013 11:54 am
Location: France

Re: Enable Case correction doesn't work on custom functions

Post by Joubarbe »

You probably misunderstood. I'm talking about functions, not keywords.

If I type "addelement(" the case correction works and I get "AddElement(". However, if I declare a procedure called MyProcedure() and if I type "myprocedure(", the case correction does not work.
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: Enable Case correction doesn't work on custom functions

Post by Bisonte »

Since this feature has never existed, it cannot be called a bug.
I have shown the possibility of achieving it anyway.

I Think, the idea is that you can identify what is an original Purebasic function, and what is not ...?
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Enable Case correction doesn't work on custom functions

Post by BarryG »

Just press Tab after typing some of your custom function name, and the auto-complete feature will correct the case. Been doing it like that for years. Can't remember if it's a setting I had to enable, but it works.
Post Reply