Eclipse: Auto Format Code - Here's how
The auto format function in Eclipse gives you the option of formatting the code quickly and easily in order to always have optimal readability. We show you in this practical tip how you can use this function.
Eclipse: Use auto format code
With the auto format function you keep an overview and can find what you are looking for more quickly in the event of an error. Since Eclipse is available for several operating systems, the key combination is different here:
- To format the code in Windows using the auto format function, press the [CTRL] + [SHIFT] + [F] keys simultaneously.
- Under MacOS use the key combination [CMD] + [SHIFT] + [F].
In the next practical tip, read how to set a classpath in Eclipse.