0
Planned

Improved Code Formating

Support 10 years ago updated by Christian Ravera 10 years ago 4
Improved formatting capabilities for Apex, Javascript and JSON.
Hello - not sure if this is the correct way to request an enhancement. Under the Code Formatting topic, the ability to format the whole document is great. Is there a way to format this style code:

if (inBilling == true) {
    if (s.contains('Company:')) {   
        accountName = s.replace('Company: ', '').trim();        
    }
}
to this

if (inBilling == true)
{
    if (s.contains('Company:')) 
    {
        accountName = s.replace('Company: ', '').trim();    
    }
}
and to "enforce" it? Perhaps as an option in the preferences? I prefer to the curly brace to be on it's own line so you can see the grouping visually.


Thanks!
Jason

+2

You know what drives me nuts? ...when I type SELECT and it automatically replaces it with all lower-case. I prefer my SOQL keywords in all-caps.