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.
Thanks for this RFE. Exporting/Importing formatting settings would certainly be very useful. Please see also issue
#75875, issue #99494, issue #11848.
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.
*** Bug 193198 has been marked as a duplicate of this bug. ***
alied: Is it really possible to import checkstyle config to eclipse or idea formatting? They haven't even got native checkstyle checking.
I add Formatting/indentation and Formatting/java to export, import options.
Integrated into 'main-golden', will be available in build *201208290001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Milutin Kristofic <email@example.com>
Log: #143494 - Import / export editor formatting settings
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.
Why is this marked as resolved / fixed when it has only been resolved for Java?
What about other languages?
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.
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!
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.
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.
(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.