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 211546

Summary: Turning off formatting locally
Product: editor Reporter: maartenl
Component: Formatting & IndentationAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: AMarguier
Priority: P3    
Version: -S1S-   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description maartenl 2012-04-21 09:26:50 UTC
I know in Eclipse there's the possibility of turning off formatting at local code parts (for example, with things that require specific formatting, like SQL statements).

// @formatter:off
private static final SQLSTRING = "SELECT stuff "
                                 "FROM table";
// @formatter:on

Is that something that Netbeans editor would support?
Comment 1 KraushLu 2016-03-30 08:55:48 UTC
+1
Comment 2 almircampos 2017-01-23 11:17:26 UTC
+1
Comment 3 AMarguier 2017-06-02 08:21:04 UTC
Hi Guys,
It would be a very nice feature to have.
It may be a bad habit from Eclipse, I guess, but it is very useful.

Any news about it ?