I don't want tabs when copying code to the clipboard [message #69316] |
Sat, 28 June 2003 00:10  |
Eclipse User |
|
|
|
Originally posted by: cay_horstmann.yahoo.com
I don't want tabs when copying code to the clipboard. (When I paste into
Netscape composer, tabs are 8 spaces!)
In Preferences->Java->Appearance->Code Formatter, I un-checked "Insert
tabs for indentation, not spaces". So, why do I have tabs at all?
I sure hope I won't have to go back to Emacs just to copy and paste code
snippets into another program.
Thanks for any help!
Cay
|
|
|
|
|
|
Re: I don't want tabs when copying code to the clipboard [message #73558 is a reply to message #73541] |
Mon, 07 July 2003 12:46  |
Eclipse User |
|
|
|
Originally posted by: tom.eicher.gmx.ch.nodomain
check JavaAutoIndentStrategy.smartIndentAfterNewLine()
-tom
"Ernest Pasour" <Ernest.Pasour@sas.com> wrote in message
news:bec7q5$v1l$1@eclipse.org...
> Any idea where I would look to see how "pasting for correct indentation"
is
> implemented? I'd like to be able to insert formatted source code into the
> existing code, but I don't know how to retrieve the current indentation
> level at the cursor. I found an example using ICodeFormatter that
requires
> this information.
>
>
> "Artur Biesiadowski" <abies@pg.gda.pl> wrote in message
> news:bdk9v9$gq6$1@rogue.oti.com...
> > Cay Horstmann wrote:
> > > I don't want tabs when copying code to the clipboard. (When I paste
into
> > > Netscape composer, tabs are 8 spaces!)
> > >
> > > In Preferences->Java->Appearance->Code Formatter, I un-checked "Insert
> > > tabs for indentation, not spaces". So, why do I have tabs at all?
> >
> > This option is controlling auto-format routines. For other typing, you
> > need to change Preferences->Java->Editor->Typing 'Insert spaces for
> > tabs' - at least it is called so in 3.0M1. I also had to disable
> > 'pasting for correct indentation' - it is messing with layout in 100%
> cases.
> >
> > Artur
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03239 seconds