Instruction
Step 1: Go to Window > Preferences
Step 2: Go to Java > Code Style > Formatter
Step 3: Download the Format_VisualStudio.xml at the link below:
https://drive.google.com/file/d/0B_8XRvhXxo1QeEZrc1RRd040Rlk/view?usp=sharing
Step 4: Click on the Import... button > choose the Format_VisualStudio.xml.
-------------------------------------------------------------------------
Step 5: (optional) If you don't like the Format_VisualStudio.xml, you can customize it by clicking on the Edit... button
OR
Click on the New... to create your own version of formatter for your Eclipse.
How to use?
- Highlight the selection that you want to format. Shortcut key is CTRL + SHIFT + F
OR
Mouse right click > Source > Format
Comments
Post a Comment