Editorconfig is used to define a command standard set of rules, used in Editor to apply those rules. It is INI based property file called .editorconfig

What does the EditorConfig file do?

editorconfig is a tool to define coding style settings such as indentation, new line ending, etc in .editorconfig file. These files are used by IDE to apply the code styles. It helps developers to define code styles in a single place, used by many IDEs such as Eclipse, and Netbeans.

used to maintain consistent coding style settings between multiple IDEs

Does Netbeans support EditorConfig?

Netbeans supports editor config by adding a plugin. -Plugin can be downloaded from here

  • Install the plugin using add plugin in ide
  • create a .editorconfig file in the root of the project with all coding styles

This tutorial explains how to add editorconfig in Netbeans IDE.

How to install editorconfig to Netbeans IDE?

To install editorconfig to Netbeans IDE, please follow the below steps.

  • Download the editorconfig-version.nbm plugin from here

  • In Netbeans Editor, Select the Tools menu -> Plugins Option

  • It opens the Plugins Window Dialog

  • Select the Settings Tab

  • Next, Go to the Downloaded Tab

  • Click on the Add Plugins button

  • It opens the Add Plugin window, and select the downloaded nbm file

  • Click on the Install option, follow the next steps

  • Restart IDE Now to finish the installation.

  • Now, able to create Python Projects

How to configure editorconfig to NetBeans projects

To configure editorconfig Netbeans, Please follow the below steps.

  • Create a .editorconfig file in the root of a project. This is the format of the ini formatted file

INI is a window property file that contains keys and values

Add the below settings.

max_line_length  = 80
insert_final_newline = true
  • max_line_length Update line width by limiting characters to 80
  • insert_final_newline: Add the line break to each line in the code editor

You can add more settings to this file.