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: | Overagressive use of number spaces per tab setting | ||
---|---|---|---|
Product: | editor | Reporter: | _ gordonp <gordonp> |
Component: | Settings | Assignee: | Vitezslav Stejskal <vstejskal> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 86751 |
Description
_ gordonp
2006-10-27 18:54:33 UTC
This does (still) have a direct affect on cnd and Makefiles. If I type 2 tabs, they get expanded to "\t\t" (as expected). If I open the Tools->Options and visit the Editor Indentation panel, then typing 2 tabs gets "\t " (1 tab followed by 4 spaces). The Options->Editor->Indentation panel is an oversimplification. We should restore the state where the settings can be specific for individual languages into 6.0. Please read issue #66187. Having Formatter.expandTabs() == false does *not* mean that you will ever only get \t in your document. The three settings expandTabs, tabSize and spacesPerTab work together in rather complex way that is described in #66187. IMO, what you want for makefile documents is: expandTabs == false and spacesPerTab always copy the value of tabSize. The tabSize setting is set through BaseOptions while the other two are on FormatterIndentEngine. You should override their getters to enforce the above rule. See also: issue #66187, issue #71936 *** This issue has been marked as a duplicate of 66187 *** |