NetBeans formatting settings file

2019-07-20 14:55发布

问题:

Where does NetBeans store code formatting settings? I'd like to export them to another computer.

回答1:

  • In Mac

Go to the main menu:

Netbeans, Preferences

  • In Windows

Go to the main nemu:

Window, Options

  • Then, in any of both

You will have to select any of the available tabs (editor, fonts and colors, ...) then click in export button

Once you have got the zip file, you can import it into another Netbeans's installation



回答2:

I'm aware that this is an old post but since it's the top result when you google "netbeans php export formatting" and it came up in the comments of the approved answer:

Each module (and therefore each language) has to support the export. AFAIK Java had the support for years ( https://netbeans.org/bugzilla/show_bug.cgi?id=143494 ) but other languages are still missing it (as for Netbeans 8.2).

I submitted a patch for PHP today which will hopefully be added: https://netbeans.org/bugzilla/show_bug.cgi?id=269978

If your langauge is missing in the export dialog, your langauge module does not yet support it. So head over to Netbeans and request it as feature or submit a patch.

Cheers Bastian