Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple IDE related question..

 
Paul Somnath
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a small little problem..
I use Eclipse for coding Java..
However I like a certain style of code syntax..
For example I like a class or method to be declared like this:



However, by default eclipse codes it as:


And it is annoying to type it according to my style. I am sure eclipse must have certain code templates which would allow me to code as per my likings.

Can anybody help me on this?
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Window->Preferences->Java->Code Style->Formatter
 
Paul Somnath
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much..
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Somnath Paul:
Thank you very much..


You are welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic