#571 autoindenting 'too smart'

severe bug
closed
nobody
5
2001-07-31
2001-07-30
No

Here what I want to type in the edit area ([TAB]
denotes TAB key pressing):

[TAB]for(i=0;i<10;i++)
[TAB][TAB]{
[TAB][TAB]something
[TAB][TAB]}

the problem is that jedit gets too smart and behaves
that way:

I type 1st line. It's ok. I press ENTER. the carret
gets autoindented and positioned belof "for". I press
[TAB], and want to type "{". But before "{" appears,
jedit moves carret 'one tab' back and places my bracked
below for's "f", which wasn't my intention. Since it
does that every time I put brackets my way, I have to
move cursor back and insert a TAB before opening
bracked. Morever, I had to do the same for closing one,
and that's hell annoying.

Discussion

  • Slava Pestov

    Slava Pestov - 2001-07-31
    • status: open --> closed
     
  • Slava Pestov

    Slava Pestov - 2001-07-31

    Logged In: YES
    user_id=2280

    You can edit the java.xml file and incomment the
    indentOpenBrackets and indentCloseBrackets properties from
    the PROPS section to achieve this behavior. I will make auto
    indent more configurable in the future.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks