Skip to content
This repository was archived by the owner on Apr 10, 2021. It is now read-only.

EditorConfig Rule Evaluation

Benny Neugebauer edited this page Jun 18, 2015 · 2 revisions

Indentation

Indentation with tabs

1)
indent_style = tab
tab_width = 4

Will set tabs with a length of 4.

2)
indent_style = tab
indent_size = 4

Will set tabs with a length of 4.

3)
tab_width = 4

Won't do anything because indent_style is not set to tab.

Note: Maybe we should be smart here and set the indent_style to tab?

Indentation with spaces

1)
indent_style = space
indent_size = 2

Will set spaces with a length of 2.

2)
indent_style = space
tab_width = 4

Will set spaces with a length of 4.

3)
indent_size = 8

Will set spaces with a length of 8 (because indent_style defaults to space).

4)
tab_width = 16

Won't do anything because no indent_style has been set.

Clone this wiki locally