Add Google Style for Java
Download xml file using this url–> eclipse-java-google-style
Instructions,
- Open eclipse->window->preference->Java->Code Style->Formatter.
- Import the downloaded xml file.
- Press Apply and Ok.
How to Use,
- You can use Ctrl+Shift+F short cut key in your java code.
Tips,
You can use auto formatting action on save (Open eclipse->window->preference->Java->Editor->Save Actions->check Perform the selected actions on save->check Format source code)
Add Google Style for JavaScript
Download xml file using this url–>google-style-guide-javascript-eclipse
Instructions,
- Open eclipse->window->preference->JavaScript->Code Style->Formatter.
- Import the downloaded xml file.
- Press Apply and Ok.
How to Use,
- You can use Ctrl+Shift+F short cut key in your java script code.
Tips,
You can use auto formatting action on save (Open eclipse->window->preference->JavaScript->Editor->Save Actions->check Perform the selected actions on save->check Format source code)
Add Google Style for HTML
Instructions,
- Open eclipse->window->preference->Web->HTML Files->Editor.
- Enter 140 as Line width
- Press Apply and Ok.