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.
Product Version: NetBeans IDE Dev (Build 201609200002) Java: 1.8.0_102; Java HotSpot(TM) 64-Bit Server VM 25.102-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_102-b14 System: Windows 10 version 10.0 running on amd64; UTF-8; en_US (nb) User directory: C:\Users\a-gtzabari\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\a-gtzabari\AppData\Local\NetBeans\Cache\dev Given: public class SomeClass { private void someMethod() { int value = 5; // Commented-out code1 switch (value) { case 5: // Commented-out code2 } } } If you code-format, Comment 1 will remain at column 0 but Comment 2 will be vertically-aligned inside "case 5". Expected behavior: Comment 2 should not be moved.