|
-
May 17th, 2019, 12:00 AM
#1
Thread Starter
Fanatic Member
Automatic "pretty listing" (reformatting) of code in VB6
1. In vb.net there is a really nice time saving feature that automatically formats your code with the proper indentation.
Type: If True then {Enter} produces
If True Then
{ |Caret here}
End If
2. There is also a feature to automatically insert the end constructs for you, ie do...loop, if...Then etc.
Type: Do {Enter} produces
Do
{Caret here}
Loop
3. Another convenient feature recently added to VB65's source code is automatic instantiation of dimensioned variables (common data types only).
Type: Dim i as long {Enter} produces
Dim i As Long: i=0
Type: Dim x,y,z as double {Enter} produces
Dim x, y, z As Double: x=0: y=0: z=0
Type Dim o as object {Enter} produces
Dim o As Object: Set o = Nothing
EDIT: Video link Auto-Indenting in VB6
EDIT: Github addin source
Has anyone else achieved these features in production? For example, an Add-in.
Thanks
Last edited by TTn; Apr 18th, 2021 at 05:49 AM.
Reason: added video
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|