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 143494 - Import / export editor formatting settings
Summary: Import / export editor formatting settings
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 5 votes (vote)
Assignee: Milutin Kristofic
Keywords: PLAN
: 193198 (view as bug list)
Depends on:
Reported: 2008-08-11 16:06 UTC by lilianne_blaze
Modified: 2017-03-04 12:54 UTC (History)
4 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description lilianne_blaze 2008-08-11 16:06:07 UTC
Please add an option to import / export all editor settings (especially Tools / Options / Editor / Formatting; maybe
other tabs in Editor options too?), preferably to a single .xml file.

Rationale: 1) it would make working with multiple ide versions and/or multiple workstations much easier. 2) It would
make frequent re-installing (especially important to people developing NB and / or simply testing nightlies) clean or
semi-clean easier. 3) It would make working in a team with set code formatting conventions much easier, team leader
could simply export his/her settings and mail them to other team members.

Yes, there is Project / Properties / Formatting / Use project specific settings options, but it doesn't apply to all
possible scenarios. On the other hand, it would probably be easy to reuse most of this functionality code for full
import / export.
Comment 1 Vitezslav Stejskal 2008-08-13 16:52:54 UTC
Thanks for this RFE. Exporting/Importing formatting settings would certainly be very useful. Please see also issue
#75875, issue #99494, issue #11848.
Comment 2 alied 2012-04-25 19:34:16 UTC
Yes, and I would add to export/import formatting/style setting in checkstyle format, so (as it is my case) it is easier for a Netbeans user to share style settings with other team members that use Eclipse or InteliJ.
Comment 3 Milutin Kristofic 2012-07-17 15:25:24 UTC
*** Bug 193198 has been marked as a duplicate of this bug. ***
Comment 4 Milutin Kristofic 2012-08-22 13:43:14 UTC
alied: Is it really possible to import checkstyle config to eclipse or idea formatting? They haven't even got native checkstyle checking.
Comment 5 Milutin Kristofic 2012-08-28 15:40:22 UTC
I add Formatting/indentation and Formatting/java to export, import options.
Comment 6 Quality Engineering 2012-08-29 02:43:01 UTC
Integrated into 'main-golden', will be available in build *201208290001* on (upload may still be in progress)
User: Milutin Kristofic <>
Log: #143494 - Import / export editor formatting settings
Comment 7 zachsaw 2012-09-29 02:41:28 UTC
Is this still not possible with CND? I'm trying build 20120926001 and found no options to export C/C++ and C/C++ Headers formatting settings.

This is especially annoying when upgrading IDEs. I have to change the settings to my liking every time.
Comment 8 zachsaw 2012-09-29 02:46:35 UTC
Why is this marked as resolved / fixed when it has only been resolved for Java?
What about other languages?
Comment 9 brettprofitt 2014-11-14 17:36:06 UTC
I am still seeing incomplete exports as of 8.0.1

Steps to reproduce:

1. Configure your formatting preferences.
2. Export all preferences. (Also, observe that in the export dialog, All -> Formatting -> Indentation is the only option.)
3. Remove local NetBeans config, change formatting preferences, or otherwise destroy the current preferences.
4. Import previously exported settings.
5. Observe the formatting preferences have not been imported.
Comment 10 mike.medved 2015-01-30 20:39:44 UTC
This needs to be for C++ as well!  This is a feature that is needed for sure - the ability to pass around a code formatting file between people on a team is a must have.  Bump up the priority!

Comment 11 mike.medved 2016-01-15 14:49:38 UTC
Netbeans team - is there any forward movement on being able to export/import C++ code formatting style?  It is crazy you've done this for Java and not C++.  It should be pretty much the exact same code - dump some stuff to XML, reimport same stuff.
Comment 12 fstark 2017-01-29 15:27:21 UTC
More than 6 years after the report, it is still impossible to move formatting between C++ projects ? Seriously ?

I must be missing something, this is mind boggling.
Comment 13 bastianschwarz 2017-03-04 12:54:57 UTC
(In reply to fstark from comment #12)
> More than 6 years after the report, it is still impossible to move
> formatting between C++ projects ? Seriously ?
> I must be missing something, this is mind boggling.

True, it is mind boggling, but you were indeed missing something:

I had a look at the Java diff, this is pretty easy to add so I submitted a diff for the PHP Editor. After all, Netbeans is OpenSource. ;)

Shouldn't be too hard to submit a diff for C/C++ to get it into the main repo. You can also build the module while you're at it and just install it into your Netbeans version via the Plugin Update Dialog.

In the meantime, the formatting settings should be saved in ~/.netbeans/8.2/config/Editors/text/LANGUAGE/Preferences/*.xml so you can share them manually.