Sharing Source Editor Settings

See Also

Source Editor settings that you have customized are stored in files in your user directory. You can share settings between IDE installations by copying these files from one user directory to another.

These settings include settings for code templates, macros, fonts, colors, keyboard shortcuts, and other settings.

Settings that you modify in the Editor section of the Options window are generally stored in config/Editors/text/MimeType, where MimeType refers to a type of editor. For example, the Java editor settings are found in the x-java folder.

Settings that you modify in the Keymap section of the Options window are stored in sub-folders of the config/Keymap folder.

Settings that you modify in the Fonts & Colors section of the Options window are stored in sub-folders of the config/Editors folder. These sub-folders are organized according to the name of the profile in which the settings are customized and the type of editor to which the settings apply. (The IDE provides the profiles called NetBeans and City Lights. You can also create your own profiles.)

For example, if you have a profile called MyIDEProfile, the general settings for that profile would be located in config/Editors/MyIDEProfile. Language-specific settings are stored in sub-folders of config/Editors/text. The Java editor specific settings for that profile would be located in config/Editors/text/x-java/MyIDEProfile. The HTML editor specific settings would be located in config/Editors/text/html/MyIDEProfile.

To share your customized Source Editor settings:

  1. Move to your IDE user directory.

    On Microsoft Windows systems, the user directory is typically located at C:\Documents and Settings\username\.netbeans\version-number\.

    On UNIX and Linux systems, the user directory is typically located at /home/username/.netbeans/version-number/.

    You can determine your user directory by choosing Help > About and click the Detail tab in the About dialog box. User Dir is listed last in the dialog box.

  2. From your IDE user directory, navigate to config folder.
  3. Within the config/Editors folder and the config/Keymap folder, find the settings files that you are interested in.
  4. Copy the desired settings file to the new location.

    If you are copying individual settings, you might need to create a folder for those settings in the new location that corresponds to their folder in the old location.

    You can copy individual settings, groups of settings, or entire profiles.

  5. If the installation of the IDE to which you have copied the settings is running, exit and restart the IDE.
  6. If you have copied a profile to the IDE, switch to that profile in the Options window.

    You can switch a profile by choosing Tools > Options, clicking Fonts & Colors, and selecting from the Profile drop-down list.

Notes:

See Also
Inserting Code From a Template and Macros
Setting Fonts and Colors
Setting Keyboard Shortcuts
Source Editor Properties
Importing Settings from a Previous Version of the IDE

Legal Notices