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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:22:17+00:00 2026-06-01T05:22:17+00:00

Today I noticed that now when I Ctrl+/ one or more lines in Eclipse

  • 0

Today I noticed that now when I Ctrl+/ one or more lines in Eclipse (.java files) it does comment them with //, but now moves the text over. However, testing this with older projects currently in the workspace, it acts as before – the line remains at the same indentation. For instance:

What I want:

    public Test()
    {
        _handler = new Handler();
    }

Becomes

    public Test()
    {
//      _handler = new Handler();
    }

What happens:

    public Test()
    {
        _handler = new Handler();
    }

Becomes

    public Test()
    {
//        _handler = new Handler();
    }

I tried making a new Java project, and a new Android project (the two I use), and both had the problem. They do not have project-specific settings enabled. I also use a custom Formatter profile, but using any of the three built-in ones did the same thing.

Does anyone know how to fix this so it keeps the line at the same indentation?

Thanks,
Amy

Extra Info:
Eclipse version Indigo, build id 20110916-0149
Android SDK R15 installed

  • 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-01T05:22:19+00:00Added an answer on June 1, 2026 at 5:22 am

    Your problem could be tabs versus spaces in the two projects. Tabs may absorb the extra characters for commenting, whereas all-spaces for indenting does not absorb the comment characters.

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

Sidebar

Related Questions

I noticed today that in D2009 (with update 1), TStringStream.ReadString does not move the
I've been using Javascript's Date for a project, but noticed today that my code
Today I installed Visual Studio 2010 Ultimate - RTM. One item that I noticed
Today I noticed that a few Google advertisements in an adsence block on one
I noticed today that auto-boxing can sometimes cause ambiguity in method overload resolution. The
I noticed today (after ~8 years of happily hacking away at bash) that there
I noticed some code of a colleague today that initialized class variables in the
I am relatively new to C#, and I noticed something interesting today that I
I have been using Hibernate very successfully, but today I noticed a bizarre phenomenon
I noticed today that if you declare a nullable DateTime object you don't get

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.