Skip to main content



      Home
Home » Newcomers » Newcomers » Inserting a real tab if the editor is configured to use spaces
Inserting a real tab if the editor is configured to use spaces [message #228890] Wed, 22 August 2007 13:48 Go to next message
Eclipse UserFriend
I'm got a question that I can't seem to find the answer to so I'm hoping
that someone here can offer a solution.

I'm editing C/C++ code and have the editor setup to use spaces instead
of tabs. However, when I'm editing a makefile I must use a real tab
character for the rules.

Is there any easy way to insert a real tab into the editor even if it's
configured to use spaces?

I was hoping that I could setup a key-binding so that a Ctrl-Tab or
Shift-Tab could do that.

Does anyone have any suggestions?

thanks,
Jeff Cooper
Re: Inserting a real tab if the editor is configured to use spaces [message #228907 is a reply to message #228890] Thu, 23 August 2007 02:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jeff,

I have the same problem and here is how I handle it.

I have installed anyedittools plugin which lets me convert tabs to spaces.
So I am inserting tabs in the editor and when saving, they are converted to
spaces. However, in some files, you need to keep tabs in the file. That
plugin has an exclusion list so for example when editing a makefile, it does
not convert tabs to spaces.

Link is : http://andrei.gmxhome.de/anyedit/links.html

It is not directly an answer to your question but I hope that helps,
Burak

"Jeff Cooper" <jeffc@logicpd.com> wrote in message
news:fahsu9$b8$1@build.eclipse.org...
> I'm got a question that I can't seem to find the answer to so I'm hoping
> that someone here can offer a solution.
>
> I'm editing C/C++ code and have the editor setup to use spaces instead of
> tabs. However, when I'm editing a makefile I must use a real tab
> character for the rules.
>
> Is there any easy way to insert a real tab into the editor even if it's
> configured to use spaces?
>
> I was hoping that I could setup a key-binding so that a Ctrl-Tab or
> Shift-Tab could do that.
>
> Does anyone have any suggestions?
>
> thanks,
> Jeff Cooper
Re: Inserting a real tab if the editor is configured to use spaces [message #228917 is a reply to message #228907] Thu, 23 August 2007 03:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pacqa100.yahoo.com.au

Silly question - why do you want a real tab in the file?
In my experience they always cause problems.
If it's in a String, can you use \t?
Peter
Re: Inserting a real tab if the editor is configured to use spaces [message #228976 is a reply to message #228917] Thu, 23 August 2007 09:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Peter,

Makefiles give special meaning to tab, so you are forced to use them. :-(


PeterL wrote:
> Silly question - why do you want a real tab in the file?
> In my experience they always cause problems. If it's in a String, can
> you use \t?
> Peter
>
Re: Inserting a real tab if the editor is configured to use spaces [message #229113 is a reply to message #228907] Thu, 23 August 2007 15:37 Go to previous message
Eclipse UserFriend
Ali,

Thanks for the sugguestion. I'll give that a try.

Jeff

Ali Burak Kulakli wrote:
> Hi Jeff,
>
> I have the same problem and here is how I handle it.
>
> I have installed anyedittools plugin which lets me convert tabs to spaces.
> So I am inserting tabs in the editor and when saving, they are converted to
> spaces. However, in some files, you need to keep tabs in the file. That
> plugin has an exclusion list so for example when editing a makefile, it does
> not convert tabs to spaces.
>
> Link is : http://andrei.gmxhome.de/anyedit/links.html
>
> It is not directly an answer to your question but I hope that helps,
> Burak
>
> "Jeff Cooper" <jeffc@logicpd.com> wrote in message
> news:fahsu9$b8$1@build.eclipse.org...
>> I'm got a question that I can't seem to find the answer to so I'm hoping
>> that someone here can offer a solution.
>>
>> I'm editing C/C++ code and have the editor setup to use spaces instead of
>> tabs. However, when I'm editing a makefile I must use a real tab
>> character for the rules.
>>
>> Is there any easy way to insert a real tab into the editor even if it's
>> configured to use spaces?
>>
>> I was hoping that I could setup a key-binding so that a Ctrl-Tab or
>> Shift-Tab could do that.
>>
>> Does anyone have any suggestions?
>>
>> thanks,
>> Jeff Cooper
>
>
Previous Topic:Download signed jar app no longer runs
Next Topic:What is the problem in calling org.apache.commons.cli.Option from EditorPart
Goto Forum:
  


Current Time: Thu Jun 19 09:59:10 EDT 2025

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

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

Back to the top