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 162456 - Appropriate per-project formatting for all modules
Summary: Appropriate per-project formatting for all modules
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-11 19:47 UTC by fommil
Modified: 2013-02-14 13:17 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
use project formatting options for tabs/spaces in java.editor and java.hints (1.75 KB, patch)
2009-04-11 19:57 UTC, fommil
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fommil 2009-04-11 19:47:40 UTC
As part of the process of becoming a netbeans contributor, I discovered that there is a preference for spaces rather than tabs.

However, my system preference (and indeed the NetBeans default) is to favour tabs over spaces.

I would like to suggest that the wonderful "Project Formatting" feature of Netbeans be taken advantage of in order to enforce this rule... other deviations from 
the Netbeans defaults can also be incorporated.
Comment 1 fommil 2009-04-11 19:57:31 UTC
Created attachment 79935 [details]
use project formatting options for tabs/spaces in java.editor and java.hints
Comment 2 Jesse Glick 2009-04-13 16:36:42 UTC
Can apisupport.project define a default code style for all nb.org modules? Ideally it would be possible to put something
in project lookup. Defining properties like those in the patch for all ~850 modules is out of the question.
Comment 3 rmichalsky 2009-04-20 12:12:13 UTC
> Can apisupport.project define a default code style for all nb.org modules? Ideally it would be possible to put something
> in project lookup.

I'd need some more background on this, e.g. starting points on what API to implement or so. I've taken a look at
java.project and java.editor and found nothing helpful regarding custom formatting (besides per-project formatting that
should work in apisupport projectS in the same way as in J2SE projects.