Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Please help with Linux Indent vs. Tab size settings
Please help with Linux Indent vs. Tab size settings [message #115018] Mon, 09 January 2006 05:24 Go to next message
Eclipse UserFriend
Originally posted by: jutes.rogers.com

Hi Eclipse Community,

Eclipse is my favourite IDE on Windows and I am now using Linux at work
and decided to continue using Eclipse.

I am having a terribly hard time trying to set up tabs and indentation in
Eclipse...

Here's what I am *trying* to do:

Each indentation level is 4 spaces. I.e. two indentations equals a single
tab.
In VI this would be accomplished with: ":set tabstop=8 hardtabs=8
shiftwidth=4"

I am trying to get this working in Eclipse and I can't for the life of me
get it to work. I need to display tabs as 8 spaces, but I need some sort
of keyboard shortcut (eg Ctrl-T) to "indent" i.e. add 4 spaces.

Can someone PLEASE help! Thanks so much.
My email is: jutes@rogers.com

Thanks!
Mike Jutan
Re: Please help with Linux Indent vs. Tab size settings [message #115045 is a reply to message #115018] Mon, 09 January 2006 08:38 Go to previous message
Eclipse UserFriend
Mike Jutan wrote:
> Hi Eclipse Community,
>
> Eclipse is my favourite IDE on Windows and I am now using Linux at work
> and decided to continue using Eclipse.
>
> I am having a terribly hard time trying to set up tabs and indentation
> in Eclipse...
>
> Here's what I am *trying* to do:
>
> Each indentation level is 4 spaces. I.e. two indentations equals a
> single tab.
> In VI this would be accomplished with: ":set tabstop=8 hardtabs=8
> shiftwidth=4"
>
> I am trying to get this working in Eclipse and I can't for the life of
> me get it to work. I need to display tabs as 8 spaces, but I need some
> sort of keyboard shortcut (eg Ctrl-T) to "indent" i.e. add 4 spaces.
>
> Can someone PLEASE help! Thanks so much.
> My email is: jutes@rogers.com
>
> Thanks!
> Mike Jutan
>
>


Have you tried Preferences->Java->CodeStyle->Formatter->Edit Indentation tab. Use ^ Shift F to format (or the
Source->Format)
Re: Please help with Linux Indent vs. Tab size settings [message #611764 is a reply to message #115018] Mon, 09 January 2006 08:38 Go to previous message
Eclipse UserFriend
Mike Jutan wrote:
> Hi Eclipse Community,
>
> Eclipse is my favourite IDE on Windows and I am now using Linux at work
> and decided to continue using Eclipse.
>
> I am having a terribly hard time trying to set up tabs and indentation
> in Eclipse...
>
> Here's what I am *trying* to do:
>
> Each indentation level is 4 spaces. I.e. two indentations equals a
> single tab.
> In VI this would be accomplished with: ":set tabstop=8 hardtabs=8
> shiftwidth=4"
>
> I am trying to get this working in Eclipse and I can't for the life of
> me get it to work. I need to display tabs as 8 spaces, but I need some
> sort of keyboard shortcut (eg Ctrl-T) to "indent" i.e. add 4 spaces.
>
> Can someone PLEASE help! Thanks so much.
> My email is: jutes@rogers.com
>
> Thanks!
> Mike Jutan
>
>


Have you tried Preferences->Java->CodeStyle->Formatter->Edit Indentation tab. Use ^ Shift F to format (or the
Source->Format)
Previous Topic:How to change components' properties in a visual heir class?
Next Topic:VE 1.2M1 : how to set input for TableViewer
Goto Forum:
  


Current Time: Mon Jul 14 04:13:51 EDT 2025

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

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

Back to the top