Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Spaces for tabs (in Indigo)?
Spaces for tabs (in Indigo)? [message #999752] Sun, 13 January 2013 02:56 Go to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

(Indigo 64-bit, Ubuntu Lucid.)

I've checked General -> Editors -> Text Editors -> Insert spaces for
tabs and then find the Java editor leaving tabs in the file anyway. I've
verified after saving (and closing) Java files that the tabs do persist.
Even if I take the tabs out by hand, more are left in as I press the tab
key afterward.

Am I missing something?

Much thanks.
Re: Spaces for tabs (in Indigo)? [message #999789 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999791 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999793 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999796 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999799 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999802 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999806 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999810 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999814 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999818 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999822 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999823 is a reply to message #999752] Sun, 13 January 2013 06:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Did you check for a similar setting specific to the Java Editor?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Spaces for tabs (in Indigo)? [message #999827 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999831 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999832 is a reply to message #999752] Sun, 13 January 2013 06:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Did you check for a similar setting specific to the Java Editor?
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Spaces for tabs (in Indigo)? [message #999836 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999837 is a reply to message #999752] Sun, 13 January 2013 06:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Did you check for a similar setting specific to the Java Editor?
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Spaces for tabs (in Indigo)? [message #999841 is a reply to message #999752] Sun, 13 January 2013 05:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Russell,

The Java -> Code Style -> Formatter's active profile determines this, in
particular, the Indention tab's Tab policy setting.

On 13/01/2013 3:56 AM, Russell Bateman wrote:
> (Indigo 64-bit, Ubuntu Lucid.)
>
> I've checked General -> Editors -> Text Editors -> Insert spaces for
> tabs and then find the Java editor leaving tabs in the file anyway.
> I've verified after saving (and closing) Java files that the tabs do
> persist. Even if I take the tabs out by hand, more are left in as I
> press the tab key afterward.
>
> Am I missing something?
>
> Much thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Spaces for tabs (in Indigo)? [message #999842 is a reply to message #999752] Sun, 13 January 2013 06:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Did you check for a similar setting specific to the Java Editor?
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Spaces for tabs (in Indigo)? [message #999846 is a reply to message #999752] Sun, 13 January 2013 06:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Did you check for a similar setting specific to the Java Editor?
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Spaces for tabs (in Indigo)? [message #1000057 is a reply to message #999789] Sun, 13 January 2013 22:46 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 01/12/2013 10:53 PM, Ed Merks wrote:
> Russell,
>
> The Java -> Code Style -> Formatter's active profile determines this, in
> particular, the Indention tab's Tab policy setting.
>
> On 13/01/2013 3:56 AM, Russell Bateman wrote:
>> (Indigo 64-bit, Ubuntu Lucid.)
>>
>> I've checked General -> Editors -> Text Editors -> Insert spaces for
>> tabs and then find the Java editor leaving tabs in the file anyway.
>> I've verified after saving (and closing) Java files that the tabs do
>> persist. Even if I take the tabs out by hand, more are left in as I
>> press the tab key afterward.
>>
>> Am I missing something?
>>
>> Much thanks.
>

Thanks, Ed. I used to use tabs, but recently have decided to discontinue
the practice in Java code at least. This is why it's just never come up
in all the years I've used Eclipse.

So, you're right...

Window -> Preferences -> Java -> Code Style -> Formatter -> Edit ->
Indentation -> Tab policy: Spaces only.

This appears to work fine now.

Thanks also to Nitin for replying. It appears that the wiggle above IS
how to configure the Java editor (which otherwise isn't listed
separately, I guess).

Best regards to all,

Russ
Re: Spaces for tabs (in Indigo)? [message #1000372 is a reply to message #1000057] Mon, 14 January 2013 16:04 Go to previous message
Cong Chen is currently offline Cong ChenFriend
Messages: 7
Registered: January 2013
Junior Member
it works for me too
Previous Topic:Eclipse broswer applets
Next Topic:Help
Goto Forum:
  


Current Time: Fri Mar 29 13:05:51 GMT 2024

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

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

Back to the top