Wish: Auto Capitalization in the Code Editor

rgately

Member
Licensed User
Longtime User
It would be nice if the code editor would automatically capitalize characters used in user created variables so that the shift key wouldn't have to be used so much.

For example: If I create a variable called "SetLayout" all I would need to do is type "setlayout" and when followed by a space it would replace itself with "SetLayout".

Thanks for a great product and for listening.
 

JonPM

Well-Known Member
Licensed User
Longtime User
How would it know to capitalize the "L"? also this doesn't follow java conventions

Sent from my DROIDX
 

rgately

Member
Licensed User
Longtime User
It would know to capitalize the L because the variable has been declared using DIM. It's what I am familiar with in Visual Studio.
 

JonPM

Well-Known Member
Licensed User
Longtime User
Oh I see, I thought you meant when Dim'ing

Sent from my DROIDX
 

magarcan

Active Member
Licensed User
Longtime User
Note that currently you can use the autocomplete feature (Ctrl + Space) to correctly capitalize the variables.
Would be really interesting autocomple variables while we are writing (like when we are write Imageview1. and all methods are shown).
 

rgately

Member
Licensed User
Longtime User
Thanks for the tip about using Ctrl+Space. I will try to remember to use it.
 

NeoTechni

Well-Known Member
Licensed User
Longtime User
It would be nice if the code editor would automatically capitalize characters used in user created variables so that the shift key wouldn't have to be used so much.

For example: If I create a variable called "SetLayout" all I would need to do is type "setlayout" and when followed by a space it would replace itself with "SetLayout".

Agreed. I love this about VB. As an OCD, it keeps code clean which I love.

Plus it solves the problem of B4A not notifying you when you make a typo in a variable name sometimes.

It already has this for built in variables, just not ours.
 

rgately

Member
Licensed User
Longtime User
The Ctrl + Space key combination behaves exactly as I imagined auto-capitalization would behave. I noticed that some of the words in the list already do auto capitalize. It would be great if everything in this list would auto capitalize as you type.
 
Last edited:

Rusty

Well-Known Member
Licensed User
Longtime User
Wish: Auto Capitalizatin in the code editor

Check out the new release 1.8. It does this now, and a lot of other things.
 
Top