facebook

Eclipse adding to .classpath file uses tabs!!

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #279896 Reply

    D R R
    Member

    When I click on properties of a project, and add something to the java build path (say a library jar), Eclipse adds an entry to the .classpath file, but puts tab chars in the file.

    We use spaces and not tabs in all such files. Is there a way to make Eclipse insert spaces instead when doing this?

    Note that I have “insert spaces instead of tabs” in all my editor settings in Eclipse.

    Thanks.

    #279897 Reply

    analogbytes
    Member

    Window -> Preferences ->Java -> Code Style -> formatter -> Edit (the profile) Change Tab policy to spaces only. I think there is another place too…. I will check.

    #279898 Reply

    analogbytes
    Member

    Window -> Preferences -> General -> Editors -> Text Editors Check Insert spaces for tabs.

    #279899 Reply

    analogbytes
    Member

    But niether of these change the effect on the .classpath file…….. hmmm. It’s a pain but if you open the .classpath file and press Ctrl Shift F it formats it correctly…

    #279905 Reply

    D R R
    Member

    Yes, ctrl-shift F works to remove the tabs and replace with spaces. Thanks. This is a good workaround.

    know any way to get it to sort the entries?

    #279906 Reply

    analogbytes
    Member

    Now that I am not sure of.

    #279907 Reply

    analogbytes
    Member

    Darn double post….

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Eclipse adding to .classpath file uses tabs!!

You must be logged in to post in the forum log in