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 8474201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:33:50+00:00 2026-06-10T17:33:50+00:00

Eclipse allows Java class files to use custom formatting and templates. The normal way

  • 0

Eclipse allows Java class files to use custom formatting and templates. The normal way to change these settings is from the Windows | Preferences menu and then Java > Code Style in the preferences dialog. The formatter governs how braces, indentation etc. works. The template governs what sort of file, class and method headers appear in a new class file.

I have two files for these settings which I must import and set to take effect. Sometimes I create a workspace and forget to set the template. Then formatting picks up the wrong style or omits the boiler plate which if I don’t catch at checkin time. This causes the file to be non standard and can cause merge conflicts for other people and vice versa to me if they make the mistake.

Is it possible to modify Eclipse easily so that it always defaults to the custom formatting and template when creating a new workspace? Even if I have to put the XML into the Eclipse folder somewhere and tweak some setting I would like to be able to do this and put instructions out for others in my team to do the same.

  • 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-10T17:33:52+00:00Added an answer on June 10, 2026 at 5:33 pm

    Have a look at Workspace Mechanic. It synchronizes workspace properties over different workspaces. So also new one. You can copy your reference-workspace configuration into the workspace mechanic directory and it will automaticcally be installed in new workspaces.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From Java and Eclipse I'm used to @inheritDoc that allows to use the same
Eclipse allows us to define a class as: interface MyInterface { void methodA(); int
Are there any plugin for eclipse that allows to show only one method from
I'm currently working on a plug-in for Eclipse that translates some custom Java code
When debugging Java code, Eclipse has a feature that allows it to find all
I use Java Eclipse and I like how I can toggle between Sorted/Unsorted view
I am comming from the Java world where I usually worked with Eclipse and
I have a Java program that loads thirdparty class files (classes I did not
In Eclipse 3.4 for Windows, the Source -> Format option for formatting Java code
When I start a new Java project in eclipse, the first popup screen allow

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.