+1. This (mis-)feature is very annoying! This is because I work on
files from different people, some formatted with 2-spaces, some
3-spaces, and some 4-spaces & 4-char tabs. I wish the auto indent would
go with the surrounding code, or at least that there was a way to
indicate that a file should use different tab&indent settings than the
editor options. Or at least make the tab & indent options project
specific.
-David Mankin
On Tue, 4 Jun 2002, Anton Safonov wrote:
> Moreover when I press Enter after opening brace of this sample method it puts
> cursor to a wrong position aligning it with the enclosing class.
> However it works fine on the same code after brace of this inner class. Even if
> this inner is not correctly aligned with the owner class.
>
> Anton Safonov wrote:
> > Just downloaded 629.
> >
> > It is simplier to see on example:
> > ...
> > private static class XXXComparator implements Comparator {
> > public int compare( Object o1, Object o2 ) {
> > XXX m1 = (XXX) o1;
> > XXX m2 = (XXX) o2;
> >
> > // bla
> >
> > return m1.compareTo(m2);
> > }
> > }
> >
> > Now I select these 2 lines with XXX and paste it after "bla" and get:
> >
> > ...
> > private static class XXXComparator implements Comparator {
> > public int compare( Object o1, Object o2 ) {
> >
> > // bla
> >
> > XXX m1 = (XXX) o1;
> > XXX m2 = (XXX) o2;
> >
> > return m1.compareTo(m2);
> > }
> > }
> >
> > I'm pretty sure that 2.5.2 based it's indent on surrounding method, not
> > on overall file indents.
> > The same story also happens when I make "Layout code..." on whatever
> > selection.
> > Not I must either not use this otherwise excellent feature or reformat
> > on open all the files I'm editing.
> >
> > Code had tabs and 4 space indents in some places.
> > Current IDEA settings:
> > TAB = 2
> > Indent = 2
> > Continuation = 4
> > Reformat pasted block = Reformat
> >
> > (I can send my xmls if needed)
> >
> > Quite annoying :(
> >
> > Anton
> >
>
>
> _______________________________________________
> Eap-bugs mailing list
> [EMAIL PROTECTED]
> http://lists.jetbrains.com/mailman/listinfo/eap-bugs
>
_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs