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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:56:05+00:00 2026-05-23T15:56:05+00:00

Eclipse’s automatic formatter changes block comments such that the Source > Remove Block Comment

  • 0

Eclipse’s automatic formatter changes block comments such that the Source > Remove Block Comment does not completely remove the block comment. Source > Add Block Comment adds the start and end of the clock comment to the lines of code, but after running the Formatter (Ctrl + Shift + F), it wraps the lines of code and adds an asterisk to the start of each line. When I try to remove the block comment with Source > Remove Block Comment, the start and end of the block comment is removed, but the asterisks at the beginning of each line is not removed.

How do I prevent Eclipse from adding these asterisks, or remove the asterisks when it removes the start and end of the block comment?

Example:

Code like this:

    String abc="abc";
    String def="def";
    System.out.println(abc+def);
    System.exit(0);

Becomes like this after adding block comments:

/*  String abc="abc";
    String def="def";
    System.out.println(abc+def);
*/  System.exit(0);

Which becomes like this after applying formatting:

    /*
     * String abc="abc"; String def="def"; System.out.println(abc+def);
     */System.exit(0);

Which ends up like this after using the Remove Block Comment function:

    * String abc="abc"; String def="def"; System.out.println(abc+def);
    System.exit(0);
  • 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-05-23T15:56:06+00:00Added an answer on May 23, 2026 at 3:56 pm

    This may be a little late in the game, but I fixed this by disabling block comment formatting.

    Windows -> Preferences -> Java -> Code Style -> Formatter -> Edit -> Comments
    

    Then uncheck Enable block comment formatting.

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

Sidebar

Related Questions

Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not
eclipse has a very nice feature. that is when you debug, it reloads changes
Eclipse has a feature Add unimplemented methods that adds the unimplemented methods for a
Eclipse has that +/- on the left to expand and collapse blocks of code.
Eclipse CDT provides two indexers for C/C++ code (Preferences > C/C++ > Indexer). Does
Eclipse is really bugging me with this. I have an Android project that is
Eclipse can add unambiguous classes with an on-save action, but it will not resolve
Eclipse support incremental compiling. If I save a source file then it will compile
Eclipse (3.4.2 with PyDev) deals with out-of-sync resources (files that have been edited outside
Eclipse Android Graphical Layout is not giving the options on properties window. example: When

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.