Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9292553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:54:27+00:00 2026-06-18T20:54:27+00:00

We rely on Eclipse formatter in our project to enforce formatting conventions for us.

  • 0

We rely on Eclipse formatter in our project to enforce formatting conventions for us. It works great and we really like it.

We keep the formatter file with our project in source control and ask everybody to import this formatter to Eclipse. The only serious problem is that whenever somebody modifies the formatter and commits the change, then every team member needs to manually “reimport” the formatter. And it’s easy to forget about doing it, so we often end up with using different versions of formatter among the team.

Is there any way to make Eclipse automatically use new version of formatter when the formatter file is updated? (I mean, could we just say to Eclipse “here’s the path to formatter file, always use the current version of this file as a formatter”?) It would be great!

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:54:29+00:00Added an answer on June 18, 2026 at 8:54 pm

    Introduction

    Formatter, Code Templates, etc. can be stored as project specific settings in the folder .settings/. You don’t necessarily need to re-import the Formatter in your workspace.

    You can use project specific settings in combination with svn:externals to “inject” the formatter, code templates, etc. in your projects.

    svn:externals:

    Sometimes it is useful to construct a working copy that is made out of
    a number of different checkouts. For example, you may want different
    subdirectories to come from different locations in a repository, or
    perhaps from different repositories altogether.

    Projects

    1. We have a java project named com.xyz.codeconventions where we added a project specific formatter and code templates. This project is under version control.
    2. For all the other projects we define a svn:externals property to “inject” the .settings/ folder from the project com.xyz.codeconventions (This is the folder where the project specific data is stored)
    3. If you now want to change the formatter you can edit the project com.xyz.codeconventions and use svn commit to submit the changes. The team will have to svn update on all projects to get the latest version of the code formatter.

    Configuration

    For all projects which should use this formatter you have to define a svn:externals property.

    Example for com.xyz.project1:

    key                   value
    ----                  ------
    svn:externals         http://path/to/com.xyz.codeconventions/.settings .settings
    

    In Eclipse (in my case Subversive) you can add svn specific properties with Team -> Set property....

    Repository Layout

    The repository structure in our case looks like this:

     <root>
       |
       +-- com.xyz.project1 # (svn:externals -> <root>/codeconventions/.settings .settings)
       |    |
       |    +-- src
       |    +-- <...> 
       +-- com.xyz.project2 # (svn:externals -> <root>/codeconventions/.settings .settings)
       |    |
       |    +-- src
       |    +-- <...> 
       +-- com.xyz.codeconventions
            |
            +-- .settings  # (this folder will get "injected" in project1 and project2)
                 |
                 +-- org.eclipse.jdt.core.prefs
                 +-- org.eclipse.jdt.ui.prefs
    
    

    Additional comments / Limitations

    • This approach is for svn users only but if you use git there is something similar to svn:externals named Submodules.
    • Make sure that in project1 and project2 are no .settings/-folder because with svn:externals it is not possible to overwrite existing files.
    • If you have java projects which need completely different formatters or different files in the .settings/ folder this approach is probably not what you are looking for. Our projects always have the same .settings files.

    Sources

    • SVN: Externals Definitions
    • SVN: TortoiseSVN – External Items
    • Git: Tools – Submodules
    • Git: Working with subtree merge
    • Eclipse Help: Code Formatter Preferences
    • Eclipse Tip: Sharing Java project settings
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to rely on external app (Barcode scanner in my case). The eclipse
Can I rely on boost multi_index_container allocated within memory mapped file? Will be this
I often rely on omni-completion to edit source codes, so my current .vimrc contains
Can we rely on our Android app getting a set amount of memory or
Their is a project I would like to start working on but the problem
In our app we rely on the sessionStorage for persistence. However on mobile Safari
All our applications rely on a certain amount of client data i.e. Lookups for
Scenario Let's say I have an Eclipse workspace with Project A, Project B, and
I often rely on the JDK source code to understand how I should implement
How can I disable sorting values in an enum in eclipse 3.7? I rely

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.