Eclipse CRLF and File Encoding

If you are sharing a project which would be edited both in Windows and Unix systems, then its best to set the New text file line delimiter settings for eclipse to Unix. To do this Open Eclipse preferences from Windows->Preferences. Navigate to General -> Workspace and then for the “New text file line delimiter” choose radio button “Other” and from the list select “Unix”. Also since eclipse by default is not using file encoding UTF-8, its best to set that also while you are doing this. Under “Text file encoding” choose radio button “Other” and from the list select “UTF-8”.

Advertisements

One Response to Eclipse CRLF and File Encoding

  1. Jhoan Manuel says:

    Thanks, it’s a really good advice =)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: