This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 3883

Summary: {} indenting is driven by bad rule.
Product: editor Reporter: _ pkuzel <pkuzel>
Component: -- Other --Assignee: _ pkuzel <pkuzel>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ pkuzel 1999-09-15 21:33:30 UTC
it seems that } indenting is not driven by pairing { but last line entered minus one tab position.
e.g.:
  try{
  myCodeIsBadlyInteded-forcedByMe;
} <- the pairing } is positioned here

while if I write:
  try{
      myCodeIsBadlyInteded-forcedByMe;
    } <- the pairing } is positioned here

[Mila] The indent engine works as described because of the performance reasons. It can be possibly replaced by the custom one if someone wants that. We can extend it in the future.
Comment 1 Marek Grummich 2000-07-25 09:08:59 UTC
Priority is changed to P4 (normal).
Comment 2 Miloslav Metelka 2000-11-24 14:26:59 UTC
The current indent engine does the pairing.
Comment 3 Quality Engineering 2003-06-30 18:10:09 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.