changing the level of indentation, can be done in almost all code editors using Tab and Shift + Tab. Go to Source | Format Document or press Ctrl+Shift+F.ġ Answer.
Your code will be automatically formatted according to the settings defined in the PHP Formatter Preferences page, accessed from Window | Preferences | PHP Formatter. Ctrl + SHIFT + L which will open a list of all major shortcuts for eclipse.Īlso to know is, what is source format in Eclipse? On Mac/OS X you can use ? + / to comment out single lines or selected blocks. Subsequently, question is, what is the shortcut key for comment in eclipse? For single line comment you can use Ctrl + / and for multiple line comment you can use Ctrl + Shift + / after selecting the lines you want to comment in java editor. How to indent a Java source file in Eclipse: In this regard, how do I indent my Java code in Eclipse?