Formulas formatting in IDEA

Issue #1251 duplicate
Roman Prytkov created an issue

Hi Scott,

Can you advise me the formatting tip to be used with the formula like the following one:


IF( OR( MOD(YEAR(StartDate ), 400 ) = 0, AND( MOD(YEAR(StartDate), 4 ) = 0, MOD(YEAR(StartDate ), 100 ) != 0)) = true, StartDate + 366, StartDate + 365)


What functionality of IDEA can be used to format it to more readable form like this one:


IF(
    OR( 
        MOD(YEAR(StartDate), 400) = 0, 
        AND( 
            MOD(YEAR(StartDate), 4) = 0,
            MOD(YEAR(StartDate), 100) != 0
        )
    ) = true,
    StartDate  + 366,
    StartDate + 365
)

It was discussed here: https://groups.google.com/a/illuminatedcloud.com/forum/#!msg/discussion/wbPc73Jc0Pg/wQ4ZtencCAAJ


Regards, Roman Prytkov

Comments (4)

  1. Adam Dry

    This would be mega! It would be great to include the other features mentioned by Scott in the google groups link: It's something I've considered (as well as syntax highlighting, code completion, and reference injection for formulas outside of Visualforce/Aura).

  2. Log in to comment