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: | A C++ project does not allow overriding global formatting per project | ||
---|---|---|---|
Product: | cnd | Reporter: | daveyost <daveyost> |
Component: | Editor | Assignee: | Alexander Simon <alexvsimon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | az.pengwang, balatka, kpalsson |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 144579 | ||
Bug Blocks: | |||
Attachments: |
This is partly implemented feature
patch 2 |
Description
daveyost
2010-05-24 19:54:24 UTC
There are no C/C++ project specific formatting options. C/C++ formatting options "Override Global Options" overrides options for all languages: - expand tabs to spaces - number of spaces per indent - tab size I could not find any checkbox in my C++ project options that would let me override the global options. Tools->Options->Editor->Formatting->C++ - check box "Override Global Options" I think it's about Formatting options in Project Properties (as for Java projects) *** Bug 195118 has been marked as a duplicate of this bug. *** *** Bug 211886 has been marked as a duplicate of this bug. *** Java projects have this project-level coding style management feature already for years. Is there any plan to port it over in the future releases? It is an important feature for slaves (like me) who are working on many projects at a same time. (In reply to comment #7) > Java projects have this project-level coding style management feature already > for years. Is there any plan to port it over in the future releases? It is an > important feature for slaves (like me) who are working on many projects at a > same time. Hi az.pengwang, We are not planning to implement this enchantment because: - bug has only one vote - use case is not clear (it similar to the rarely used. For example: a) user work on bunch of company project and each project has own formatting style. I hardly believe in this scenario. b) user work on bunch of company projects with common formatting and for enjoying develops third part project with different formatting style.) Alexander We really long for this feature. It's a very common scenario, when you work on a few C/C++ projects with different mandatory formatting. Especially the maintenance of legacy projects is typical. (In reply to comment #8) > > We are not planning to implement this enchantment because: > - bug has only one vote > - use case is not clear (it similar to the rarely used. For example: a) user > work on bunch of company project and each project has own formatting style. I > hardly believe in this scenario. b) user work on bunch of company projects with > common formatting and for enjoying develops third part project with different > formatting style.) > > Alexander I'm surprised to hear we are not planning this. There is no need to speculate about the use cases. I personally met a few customers who said they need this. Typical case is maintenance of legacy code. (In reply to comment #8) > > We are not planning to implement this enchantment because: > - bug has only one vote > - use case is not clear (it similar to the rarely used. For example: a) user > work on bunch of company project and each project has own formatting style. I > hardly believe in this scenario. b) user work on bunch of company projects with > common formatting and for enjoying develops third part project with different > formatting style.) > > Alexander Hi Alex, Then how many votes are needed to make this higher priority? There are definitely more user cases are looking for this feature. I am typical user in your category "a". I am working on three different types of projects, one is firmware based on third parties' code, one is Linux, and the other is open source. They all have different coding style. Regards, Peng (In reply to comment #11) > There are definitely more user cases are looking for this feature. I am typical > user in your category "a". I am working on three different types of projects, > one is firmware based on third parties' code, one is Linux, and the other is > open source. They all have different coding style. > > Regards, > Peng Do you really commits nbproject/* into your VCS? > Hi Alex, > > Then how many votes are needed to make this higher priority? > > Regards, > Peng Peng, no worry, my single vote is enough to make it happen ;-) looks like C++ development Heaven is approaching :) keep fingers crossed:) Created attachment 132082 [details]
This is partly implemented feature
Probably Vladimir do it faster
Alexander, thanks for the patch, you are really great! Please, continue and I can help with blocker bug Created attachment 132155 [details]
patch 2
new version with some fixes in controllers
fixed, change set: http://hg.netbeans.org/cnd-main/rev/e1f4116ab840 Integrated into 'main-golden', will be available in build *201305252300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/e1f4116ab840 User: Alexander Simon <alexvsimon@netbeans.org> Log: fixed Bug #186628 A C++ project does not allow overriding global formatting per project Integrated into 'main-golden', will be available in build *201305282301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b02684db5a37 User: Alexander Simon <alexvsimon@netbeans.org> Log: additional fix Bug #186628 A C++ project does not allow overriding global formatting per project: - hide id field Thank you!!! Can't wait to give it a try:) |