Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoformat code in Eclipse when entering semicolon or brace

Coming from Visual Studio, I'm used to getting my code auto-formatted whenever I enter a semicolon or a closing curly brace. Is it possible to do the same with Eclipse in the JavaScript editor?

like image 615
Tobias Avatar asked Nov 03 '22 19:11

Tobias


1 Answers

Use Ctrl+A to select your code, then press Ctrl+i, this will make code indentation properly for javascript code in eclipse kepler.

like image 89
anilkjb Avatar answered Nov 11 '22 16:11

anilkjb