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 256028 - Line is not indented correctly after a commented line
Summary: Line is not indented correctly after a commented line
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2015-10-19 18:42 UTC by lvaills
Modified: 2015-10-20 10:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (167.21 KB, text/plain)
2015-10-19 18:42 UTC, lvaills

Note You need to log in before you can comment on or make changes to this bug.
Description lvaills 2015-10-19 18:42:48 UTC
Product Version = NetBeans IDE 8.1 RC2 (Build 201510122201)
Operating System = Linux version 3.16.0-44-generic running on i386
Java; VM; Vendor = 1.8.0_45
Runtime = Java HotSpot(TM) Client VM 25.45-b02

Reproducibility: Happens every time

  * Creates the following Java class : 
package org.lvaills.netbeans;

public class TestLineAfterComment {
    public static void main(String[] args) {
//        System.out.println("Hello World !");
int i;
i = 3;

  * Select the lines "int i;" and "i = 3;"
  * Ctrl+i
  * Execute the action "Re-indent current line or selection"

  nothing happens

I expect to have the line "int i;" and "i = 3;" indented (with 8 spaces in that case).

Note that if I execute the action "Format (Source)" (Alt+Shift F) the lines are correctly indented.
Comment 1 lvaills 2015-10-19 18:42:52 UTC
Created attachment 156811 [details]
IDE log