Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » tabs vs. spaces
tabs vs. spaces [message #35175] Wed, 14 January 2009 01:07 Go to next message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
One of our users just determined that he prefers to use spaces (4?) instead
of tabs.
We changed the default text editor - and this doesn't affect our DLTK based
editor.
Is there any way to control this - or must we create our own editor
preferences dialog?
If we do, what could/should we call to change this behavior internally?

Thanks,
Chuck
Re: tabs vs. spaces [message #35196 is a reply to message #35175] Wed, 14 January 2009 07:33 Go to previous messageGo to next message
Gunter Pfeiffer is currently offline Gunter PfeifferFriend
Messages: 30
Registered: July 2009
Member
Hello chuck,

go to preferences, general, editors, text editors
an deactivate "Insert spaces for tabs"
than go to preferences, tcl, editor
and activate Tab policy to "Spaces only"

if you want more functionality, you can install a other plugin
called "AnyEdit Tools"

btw, you should all of your user suggest to use spaces instead tabs.
it's better ;-}}}

best regards
gunter
Re: tabs vs. spaces [message #35244 is a reply to message #35175] Wed, 14 January 2009 11:37 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
Hi Chuck,

For other DLTK-languages it is controlled via preferences, the
preference keys are declared in the
org.eclipse.dltk.ui.CodeFormatterConstants class. The processing of
these preferences is done in both of the DLTK base code and language
specific code. The necessary part is to override some methods in the
*SourceViewerConfiguration.

For example of the preference page you can look at the
org.eclipse.dltk.ruby.internal.ui.preferences.RubyEditorPref erencesPage
class.

Regards,
Alex

Chuck Doucette wrote:
> One of our users just determined that he prefers to use spaces (4?) instead
> of tabs.
> We changed the default text editor - and this doesn't affect our DLTK based
> editor.
> Is there any way to control this - or must we create our own editor
> preferences dialog?
> If we do, what could/should we call to change this behavior internally?
>
> Thanks,
> Chuck
>
>
Previous Topic:Javascript: WEB_event can not be resolved to a type
Next Topic:DLTK Task
Goto Forum:
  


Current Time: Fri Apr 26 19:02:39 GMT 2024

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

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

Back to the top