IDE & Code Formatting

  1. 2 weeks ago
    Edited 2 weeks ago

    Does anyone else think some of the formatting style that the ide does is odd?

    Take indenting for example.

    The ide enforces something (good) like this:

    If myValue = True Then
        doSomething 
    End If

    But for other things it doesn't indent and worse, doesn't allow the user to indent:

    Select Case myValue
    Case "apple"
       doSomething 
    End Select

    This indenting example is not consistent with the first behaviour.

    Select Case myValue
        Case "apple"
           doSomething 
    End Select

    I can't see any way to control this behaviour in the IDE preferences..

    • You cannot control the formatting (unfortuantly), would be nice to increase the indent value
    • formatting (Select Statements for example) are consistent at least with how Xcode formats (I'd prefer CASE to be indented as well)
  2. Dave S

    Feb 8 Answer San Diego, California USA
    • You cannot control the formatting (unfortuantly), would be nice to increase the indent value
    • formatting (Select Statements for example) are consistent at least with how Xcode formats (I'd prefer CASE to be indented as well)
  3. Jean-Yves P

    Feb 8 Pre-Release Testers, Xojo Pro Europe (France, Besançon)

    you can have your own reformat script
    see example here : https://forum.xojo.com/47120-reformat-code-script

    but beware of it :
    https://forum.xojo.com/51048-bad-autocompletion-when-standardize-code-is-checked

    more about it :
    https://forum.xojo.com/conversations/all?search=reformatcode

    documentation reference :
    https://docs.xojo.com/UserGuide:Custom_Code_Reformatting

  4. Good to know @Jean-YvesPochez - thanks. I'll look into it.

or Sign Up to reply!