Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » spaces instead of tabs by "shift right" action
spaces instead of tabs by "shift right" action [message #272393] Wed, 22 September 2004 06:49 Go to next message
Eclipse UserFriend
i borrowed =) the tabconverter from the ant editor and it works well.
means: a single tab results in 2 spaces as desired. but if i use the
"shift-right" action, the editor inserts a tab at the beginning of the
line. i've shortened the tabs appearance to the size of 2 spaces by
overwriting
org.eclipse.jface.text.source.SourceViewerConfiguration#getT abWidth(
org.eclipse.jface.text.source.ISourceViewer)
but i really need to insert 2 spaces and not a tab that looks like two
spaces.
any ideas how two configure this? do i have to implement "shift right" by
myself?
regards
daniel
Re: spaces instead of tabs by "shift right" action [message #272543 is a reply to message #272393] Thu, 23 September 2004 03:56 Go to previous message
Eclipse UserFriend
you have to set the "insert spaces for tab" preference for your editor.

-tom

daniel wrote:
> i borrowed =) the tabconverter from the ant editor and it works well.
> means: a single tab results in 2 spaces as desired. but if i use the
> "shift-right" action, the editor inserts a tab at the beginning of the
> line. i've shortened the tabs appearance to the size of 2 spaces by
> overwriting
> org.eclipse.jface.text.source.SourceViewerConfiguration#getT abWidth(
> org.eclipse.jface.text.source.ISourceViewer)
> but i really need to insert 2 spaces and not a tab that looks like two
> spaces.
> any ideas how two configure this? do i have to implement "shift right" by
> myself?
> regards
> daniel
>
Previous Topic:Invisible cursor whilst debuging?
Next Topic:Multiple MasterDetailsBlocks in a FormPage
Goto Forum:
  


Current Time: Wed Apr 30 12:38:51 EDT 2025

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

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

Back to the top