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.
Summary: | Blank lines needlessly get indented | ||
---|---|---|---|
Product: | editor | Reporter: | David Konecny <dkonecny> |
Component: | Formatting & Indentation | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | vnicolici |
Priority: | P4 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
David Konecny
2001-03-22 09:23:34 UTC
Target milestone -> 3.3 Changing the state of the issue to ASSIGNED, because it was cover in Requirements document at http://editor.netbeans.org/doc/Requirements.html Target milestone -> 3.3.1. Set target milestone to TBD Set target milestone to TBD Changing subcomponent to formatting. It seems to me that blank lines need to be indented if you want to start typing something on a blank line. I would be more annoyed if I had to press tab every time I wanted to type some code in a blank line. (I.e., I like it the way it is.) Also, the size of the ".java" file doesn't impact the size of the ".class" file, does it? >> Also, the size of the ".java" file doesn't impact the size of the ".class" file, does it?
Well, of course it does! Otherwise it would be pointless to write code in java :-). But you are right that the amount of
whitespace in .java does not affect the size of bytecode in .class.
Also, please note that you can Source -> Remove Trailing Spaces in your source files.
I think when I voted for this years ago if you selected a block of code and hit ALT+TAB, it would also add a tab to blank lines. This doesn't appear to be an issue any more. I think even blank lines that are indented have the indentation removed when you save the file, at least with the Java editor. In my opinion, this is how it should work. Maybe it works differently with other file types? Already implemented via Remove Trailing Spaces functionality. |