Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » replace tab with space
replace tab with space [message #276817] Mon, 29 November 2004 12:58 Go to next message
Eclipse UserFriend
Originally posted by: waltereo.hotmail.com

Hi,

How can I replace tabs with space in my existing code ??

Thanks
Re: replace tab with space [message #276845 is a reply to message #276817] Tue, 30 November 2004 05:06 Go to previous messageGo to next message
Eclipse UserFriend
Waltereo wrote:
> How can I replace tabs with space in my existing code ??

If it's java code: define a code formatting style that specifies to use
spaces and reformat your code. The wanted or unwanted side-effect will
be that your code is reformatted.

-tom
Re: replace tab with space [message #276933 is a reply to message #276817] Wed, 01 December 2004 08:28 Go to previous messageGo to next message
Eclipse UserFriend
If you havent got too much code, you could do a search and replace manually.

Find: \t
Replace: (4 spaces)

and check the "Regular expressions" option.

"Waltereo" <waltereo@hotmail.com> wrote in message
news:cofnta$jei$1@www.eclipse.org...
> Hi,
>
> How can I replace tabs with space in my existing code ??
>
> Thanks
>
>
Re: replace tab with space [message #276935 is a reply to message #276933] Wed, 01 December 2004 10:07 Go to previous message
Eclipse UserFriend
Originally posted by: bob.news.gmx.net

"Jayshan" <jr200@doc.ic.ac.uk> schrieb im Newsbeitrag
news:cokgt5$kbu$1@www.eclipse.org...
> If you havent got too much code, you could do a search and replace
manually.
>
> Find: \t
> Replace: (4 spaces)
>
> and check the "Regular expressions" option.

That's not guaranteed to yield properly indented code, is it? A tab is
not always four spaces - could be less depending on the position of the
tab.

Kind regards

robert


> "Waltereo" <waltereo@hotmail.com> wrote in message
> news:cofnta$jei$1@www.eclipse.org...
> > Hi,
> >
> > How can I replace tabs with space in my existing code ??
> >
> > Thanks
> >
> >
>
>
Previous Topic:Restore a deleted project
Next Topic:Programmatically retrieve platform configuration
Goto Forum:
  


Current Time: Mon Jul 28 10:59:46 EDT 2025

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

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

Back to the top