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

  • Home
  • SEARCH
  • 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 9214161
In Process

The Archive Base Latest Questions

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

I just found Eclipse Juno for C/C++ Insert space for tab doesn’t work. Juno

  • 0

I just found Eclipse Juno for C/C++ “Insert space for tab” doesn’t work. Juno for Java works. Anybody has the same issue? Is there a way to run a script to change tabs to 4-spaces in all .cpp and .h files before I check in my changes? Anybody can help with the script? thanks,

Edit:

I am in Linux.

Edit2

this works too:

find ./ -name ‘*.cpp’ -exec sed -i ‘s/\t/ /g’ {} \;

  • 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-18T01:54:56+00:00Added an answer on June 18, 2026 at 1:54 am

    The script is a one-liner from your terminal:

    $ perl -pi.bak -e 's{\t}{    }g' *.cpp *.h
    

    The ‘.bak’ argument will create a backup of your files (e.g. test.cpp –> test.cpp.bak)

    For Windows, use double-quotes instead of single quotes.

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

Sidebar

Related Questions

I just found Dean Edwards javascript packer here: http://dean.edwards.name/packer/ It has a couple of
I just found Has anyone published a detailed comparison between different in-memory RDBMSs ?
I just installed the Android SDK (4.2) in Eclipse Juno on my MacBook Pro
I just wrote a simple applet using Eclipse Juno, previously I got NoClassFoundError running
I just installed Eclipse EE Juno (4.2) and a whole slew of plugins for
just found this bit, while reading eclipse JDT 's documentation: IMethodBinding.getParameterTypes() : . .
I have just started looking at developing a plugin for Eclipse and I found
I recently updated my eclipse installation to Juno, and I found a important change
I've just started using eclipse and java and I'm not used to either one
Recently, I just wrote an eclipse plugin to auto deploy one specific Java EE

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.