Menu

#204 Code formatting of {$IFDEF ...

None
open
nobody
None
5
2025-10-05
2025-10-05
No

Please add an additional indent between

{$IF DEFINED(RELEASE)}
  do something;
{$ELSEIF DEFINED(BETA}
  do something;
{$ELSE}
  do  something;
{$ENDIF}

{$IFDEF DEBUG}
  do something; 
{$ELSE}
  do something
{$ENDIF}

Would be nice for me to be the same number of indents as for "if then else formatting"

Discussion

  • Karlheinz Jansen

    Hmm the idents are missing now. The idea was to have two spaces in front of do something.

     
    • Thomas Mueller

      Thomas Mueller - 2025-10-05

      You need to surround the code with 3x tilde ~ :

                code here
      

      for it to be formatted correctly. Use the </> button to insert them.

      (This is for the sourceforge feature request, not the code fomatter.)

       

      Last edit: Thomas Mueller 2025-10-05

Log in to post a comment.

MongoDB Logo MongoDB