Other [new feature] Blocks Completion

AHilton

Active Member
Licensed User
Longtime User
Is this something a developer can add to? For example, say that I want to set up something like ....

Typing: "todo"

and B4x would complete it as ...

' ################
' TODO: 08/01/2015 01:32:68
' My Name is Joe, Company XYZ
' [cursor blinking here ready for typing]
'################


or even something like ...


Typing: "dowhileif"

completes as ...

Do While [cursor here]
If

End If
Loop

While it isn't really "blocks completion", it's more of a "code completion" or "command completion". VFP developers know what I'm talking about and just how useful / powerful that implementation is.
 
Upvote 0

jmon

Well-Known Member
Licensed User
Longtime User
Talking about some simple typing ideas:

I like that when I type
B4X:
$"
, B4J autocompletes to
B4X:
$""$
and puts the caret correctly inbetween the 2 double quotes :
B4X:
$"|"$

Therefore I think it should be the same when I type ${}:
B4X:
$"Example:${}"$
The caret should go inbetween the 2 curly brackets, instead of staying behind the last curly bracket:
B4X:
$"Example:${}|"$
'like this>
$"Example:${|}"$
$"Example:${someVariable|}"$
That way we could type faster :)

Tell me if it's not clear :)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Tell me if it's not clear
Use the auto complete feature. Choose No format and it will complete it like you suggested.

SS-2015-08-18_09.08.36.png
 
Upvote 0
Top