Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Code Indenting 1

Status
Not open for further replies.

RSfromCO

Programmer
May 3, 2002
149
US
I wrote a procedure to generate a bunch of standard code I use within MS-Access for a class module. I didn't worry about formatting the code (indenting) that was generated into the text file. However, when I actually put the code into the class module I would like it to indent propery for readablity. Is there a way to get code to 'indent' when it is pasted into the code editor? Or once the code is in the code editor window, can I select it and tell it to auto-indent or auto-format somehow?


For example.... if part of the code I paste into the class module looks like this...

Code:
Public Property Let CustomerID(var As Long)
lngCustomer = var
End Property
Public Property Get CustomerID() As Long
CustomerID = lngCustomerID
End Property

I would like to end up with something more like this...

Code:
    Public Property Let CustomerID(var As Long)
        lngCustomer = var
    End Property
    Public Property Get CustomerID() As Long
        CustomerID = lngCustomerID
    End Property
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top