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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:04:28+00:00 2026-06-01T07:04:28+00:00

Following code is from a sample of playframework-2.0: /** * Display the dashboard. */

  • 0

Following code is from a sample of playframework-2.0:

/**
 * Display the dashboard.
 */
public static Result index() {
    return ok(
        dashboard.render(
            Project.findInvolving(request().username()),
            Task.findTodoInvolving(request().username()),
            User.find.byId(request().username())
        )
    );
}

It looks good, but when I use code format of eclipse, it becomes:

/**
 * Display the dashboard.
 */
public static Result index() {
    return ok(dashboard.render(
        Project.findInvolving(request().username()),
        Task.findTodoInvolving(request().username()),
        User.find.byId(request().username())
        ));
}

How to configure eclipse to keep to first format style? I tried a lot, but not works.

  • 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-01T07:04:29+00:00Added an answer on June 1, 2026 at 7:04 am

    You have to using Code Formatter in eclipse. You can find it in following path:

    1. windows menu and in Preferences item.
    2. go to java in left tree.
    3. go to code style sub-tree of java.
    4. select Formatter leaf.
    5. click Edit button and edit your customize formate and save it.

    I recomend you save your customization environment such as formatter and use it in others place. Eclipse hold formatter information in a xml file. you can specify path of this file.

    following link is useful:

    • http://www.peterfriese.de/formatting-your-code-using-the-eclipse-code-formatter/
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The following piece of code is a reduced sample from the large project I'm
I have downloaded sample code from Apple Center.I also have gone through following question:
The following code was been given from our school as a sample for circular
From sample example 4 of MSDN Threading Tutorial Following code errors out at the
The following sample code is from Joe Armstrong's Programming Erlang book: max(N) -> Max
I use the following code (from Bluetooth Chat sample app) to read the incoming
I am a newbie to PHP development. I tried following code sample from PHP5
I am going through some sample code from Apple. The following 5 statements are
I'm using the following code (which is a sample from the MSDN slightly modified)
I downloaded the code and am following the sample Guy from Queensland How can

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.