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 202141 - Regression: Generated Code has wrong indentation
Summary: Regression: Generated Code has wrong indentation
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: PC All
: P4 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-14 15:19 UTC by _ alexlamsl
Modified: 2012-03-24 02:35 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexlamsl 2011-09-14 15:19:53 UTC
GUI Builder after 7.0.1 update has a fixed indentation of 4 spaces for initComponents() and variable declaration.

The indentation for event code, however, is correct (2 spaces in my case).
Comment 1 asenk 2011-09-15 10:32:27 UTC
Product Version: NetBeans IDE Dev (Build 201109141017)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)

Steps to reproduce:
1. Tools->Options->Editor->Formating
2. Number of Spaces per Ident: 2
3. Create new JFrame Form and and some components.

This is "Incorrect behavior that doesn't affect functionality" -> P4
Comment 2 MackSix 2012-03-24 02:35:56 UTC
Fixed in:

Product Version: NetBeans IDE Dev (Build 201203230400)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)