Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:49 Go to next message
daniel kroeni is currently offline daniel kroeniFriend
Messages: 5
Registered: July 2009
Junior Member
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 07:56 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
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: Sat Aug 10 09:25:45 GMT 2024

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

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

Back to the top