Reputation: 17348
I have switched my development environment from Adobe DreamWeaver to Eclipse, and I had one question regarding the Eclipse environment. Whenever I copy and paste sections of code from one area of a script to another, often times the indenting isn't consistent with the surrounding code.
Is there a way I can indent/outdent large sections of code instead of having to manually correct them on a line-by-line basis?
Thank you for your time.
Upvotes: 0
Views: 257
Reputation: 8344
To indent or outdent a section of code, you can select the entire section and then press tab or shift-tab.
Upvotes: 1
Reputation: 7385
I do Java development in Eclipse and to format code I select it and press Ctrl + Shift + F. It is also available from Menu -> Source -> Format.
Note that I am working with Eclipse 3.5.1, but I dont think this key combination will change for other versions.
Upvotes: 0