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: | Changing formatting parameters sometimes resets tabs and indents to "Use All Language Settings" | ||
---|---|---|---|
Product: | java | Reporter: | brettryan <brettryan> |
Component: | Source | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | My formatting preferences |
Description
brettryan
2015-09-22 02:38:07 UTC
OK, you set default (all languages) tab stop to 2, java to 4. What settings do you typically change - some java specific formatting ones ? Other languages or general formatting settings ? No response from the reporter Sorry my bad for not responding. It can be any setting under formatting. I just tested and verified this in 8.1 Steps to reproduce: 1. Use settings: - All languages > tabs and indents - expand tabs to spaces - number of spaces 2 - tab size 2 - Java > tabs and indents - use all language settings (unticked) - expand tabs to spaces - number of spaces 4 - tab size 4 2. Now go back into user settings and change - Java > Braces - toggle special else if treatment Expected outcome: tabs and indents are not changed for java Actual outcome: "Use all language settings" for java becomes ticked. You must go back in and untick, then set the values back to 4, but not once, you have to do it twice. Once this has been done it's unpredictable how to reproduce, restarting the IDE session usually results in being able to reproduce once again. Created attachment 158047 [details]
My formatting preferences
Adding my current formatting preferences.
Works for me using the attached settings in dev version. I tried to: * change special treatment, then switch to Java/Tabs & Indents panel. OK. * change special treatment, press Apply, switch to Tabs & Indents. OK. * change special treatment, confirm OK, reopen dialog, switch to Tab & Indents. OK. The above, starting at Tabs & Indents, going to Braces and then back. |