Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Drupal uses 2 spaces for indentation, while Symfony uses 4 spaces for indentation. Switching between the two different formats in your IDE can be bothersome.
Proposed resolution
EditorConfig provides configuration settings for supported text editors on a per-project basis in a hidden .editorconfig file. Opening up a file in Symfony finds Symfony's configuration and uses the 4 space indents, while opening up a file in Drupal will automatically detect the 2 spaced indents.
Remaining tasks
- Make sure we're using the correct supported properties
- Should this live in / rather than /core?
- Get the patch RTBC
User interface changes
None.
API changes
None... This is completely optional. Developers can install the plugin to have their IDE detect the configuration.
Comment | File | Size | Author |
---|---|---|---|
editorconfig.patch | 454 bytes | RobLoach | |
Comments
Comment #1
RobLoachTagging.
Comment #2
nod_dup #1713662: Introduce .editorconfig to auto-configure editors that support it
Comment #2.0
nod_dfs