Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to turn off hard tabs?
How to turn off hard tabs? [message #234765] Fri, 12 June 2009 07:24 Go to next message
sasuke  is currently offline sasuke Friend
Messages: 12
Registered: July 2009
Junior Member
Hi everyone,

I could not turn off hard tabs in Eclipse CDT IDE. I did check the option:
"Insert Spaces for tabs" in Window->Preferences->Text Editor, but it did
not work, because after that I came back to the editor, pressed the Tab
key and then used the arrow keys to move the cursor around and the editor
was still in 'hard tabs' mode.

Any ideas?

Thanks in advance!

Sasuke
Re: How to turn off hard tabs? [message #234859 is a reply to message #234765] Mon, 15 June 2009 08:09 Go to previous messageGo to next message
Anton Leherbauer is currently offline Anton LeherbauerFriend
Messages: 490
Registered: July 2009
Senior Member
sasuke wrote:
> Hi everyone,
>
> I could not turn off hard tabs in Eclipse CDT IDE. I did check the
> option: "Insert Spaces for tabs" in Window->Preferences->Text Editor,
> but it did not work, because after that I came back to the editor,
> pressed the Tab key and then used the arrow keys to move the cursor
> around and the editor was still in 'hard tabs' mode.
> Any ideas?
>
> Thanks in advance!
>
> Sasuke
>

You can change this for the C/C++ Editor on the C/C++ > Code Style
preference page.

--
Anton Leherbauer
Wind River Systems, Austria
CDT Committer - http://www.eclipse.org/cdt
Re: How to turn off hard tabs? [message #234920 is a reply to message #234859] Thu, 18 June 2009 03:07 Go to previous messageGo to next message
sasuke  is currently offline sasuke Friend
Messages: 12
Registered: July 2009
Junior Member
Thank you very much, Anton.

You solved my problem.

Best regards,

Sasuke
Re: How to turn off hard tabs? [message #1729885 is a reply to message #234859] Wed, 20 April 2016 02:21 Go to previous message
Wayne Wang is currently offline Wayne WangFriend
Messages: 1
Registered: December 2015
Junior Member
Hi Anton,

But there still have problems with some text editors, when I edit a text file such "Makefile.am" (autotools configure file), the Tab key still works as "hard tabs" not in 'spaces'.
how can I fix this issue.

Thanks in advance!

Wayne
Previous Topic:How to create a new project in a working set?
Next Topic:GDB Hardware Debugging does not Suspend
Goto Forum:
  


Current Time: Tue Apr 23 07:40:10 GMT 2024

Powered by FUDForum. Page generated in 0.03041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top