EditorConfig
Introduction
This page describes the use of an .editorconfig
file.
What is EditorConfig?
Editors tend to use different default settings when configuring indent style, tab size and newline characters. To simplify configuration, EditorConfig was created. It lets supported editors load their configuration from a shared .editorconfig
file, thus no editor-specific configuration is required.
Note that EditorConfig only sets basic editor related properties. For more advanced formatting options, you need to configure a code formatter for your language.
How can I use it?
PhpStorm
Make sure to install the EditorConfig plugin.
Visual Studio Code
Make sure to install the EditorConfig extension. If you installed our recommended extensions, you already have it installed.
Is there a default .editorconfig
?
You generally should prefer defining your EditorConfig configuration on a per-project-basis. But for a good start, you can use this repository's editorconfig
.