There is a simple trick to format your SQL code in LOWER,UPPER,INITCAP with SQL Developer.
Select the code you want to format and click the "Aa"-button or "Strg + Quote".
Default:

Target:

It is so simple but I never came on the idea to check this button.
Select the code you want to format and click the "Aa"-button or "Strg + Quote".
Default:
Target:
It is so simple but I never came on the idea to check this button.