DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page New file formatting
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default New file formatting - 11-07-2008, 07:45 PM

Hello again sweet forum,
I was wondering if there was an easy way for me to change the way Eclipse creates a new class file.

I normally format my classes as such:
public class MyClass
{
// Code
}

However, Eclipse always greets me with a new class as such:
public class MyClass{
// Code
}

It's a small issue, I know but I would love to get around this...
Thank you!
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Nov 2008
Default 11-07-2008, 08:13 PM

-- NEVER MIND --
I was stumbling through the options and found how to change the formatting. For those of you who are wondering how I did it, the solution was:
1. Go to WINDOW->PREFERENCES
2. In the options hierarchy on the left go to JAVA->CODE STYLE->FORMATTER
3. Here I created a new profile called "Mike's Preferred Format" and began to edit to my heart's content. :-D

Thanks anyways!
Reply With Quote
Reply

Tags
new file format change

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skip logger statements while formatting akjain84 Eclipse 0 01-21-2009 04:57 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com