Bug? v3.80 Auto-complete annoyance

ac9ts

Active Member
Licensed User
Longtime User
When I try and type #End Region, #End If gets inserted and I have to backspace over the If and type Region. Is there something I'm missing? I'm using v3.80.
 

ac9ts

Active Member
Licensed User
Longtime User
It's not #EndRegion, it's #End Region. The space is what's throwing it off. Either way, it just seems broken if you were to start typing (without using any shortcuts) the letters #,E,n,d,<SPACE>,R,e,g,i,o,n it will give you "#End If Region". As soon as you press the space bar, it auto-completes to "#End If.

I tried #e and TAB and it auto-completes to #End If.

I'm using B4A v3.80, Win7 Professional SP1, 64-bit if this helps.
 

stevel05

Expert
Licensed User
Longtime User
3.20 doesn't have #End If, I can confirm the stated behaviour on 3.8
 

ac9ts

Active Member
Licensed User
Longtime User
I wrote bad #EndRegion, I meant #End Region, obviously.

I'm using B4A 3.20, in which #e TAB writes #End Region

Since there is only one option that starts with #e, that's why it works. The new #End If is part of the Conditional Compilation enhancements in v3.80.
 

ac9ts

Active Member
Licensed User
Longtime User
#End If and #End Region are the only two options that have a space in them. Maybe changing #End If (since it's newer) to #EndIf would fix it. For backward compatibility with code that is already written, automatically change "#End If" to "#EndIf" when the source files are read in by the IDE.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…