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 file are used by IDE to apply the code styles. It helps developers to define code styles in a single place, used by many IDE 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
.editorconfigfile 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
It opens the
Next, Go to the
Click on the
It opens the Add Plugin window, and select the downloaded
Click on the
Installoption, follows 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 is a window property file that contains keys and values
Add the below settings
max_line_length = 80 insert_final_newline = true
max_line_lengthUpdate 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.