Skip to content

Add EditorConfig properties for indent style and size#426

Merged
adamziel merged 2 commits intoWordPress:trunkfrom
eliot-akira:add-editor-config-indent-properties
May 24, 2023
Merged

Add EditorConfig properties for indent style and size#426
adamziel merged 2 commits intoWordPress:trunkfrom
eliot-akira:add-editor-config-indent-properties

Conversation

@eliot-akira
Copy link
Copy Markdown
Collaborator

@eliot-akira eliot-akira commented May 24, 2023

What?

This PR updates the .editorconfig file with additional properties indent_style and indent_size, with equivalent configuration as the .prettierrc file. Resolves #425

Why?

The EditorConfig file is often used by code editors to adjust configuration per project. For example, the VS Code extension editorconfig-vscode looks for an .editorconfig file in any open project and adjusts the behavior of the TAB key based on its configuration.

How?

Update the .editorconfig file.

Testing Instructions

  1. Check out the branch.
  2. Open one of the project files with a code editor that supports .editorconfig.
  3. Press the TAB key to insert hard tab with width 4.

@eliot-akira eliot-akira requested a review from adamziel May 24, 2023 01:03
@adamziel
Copy link
Copy Markdown
Collaborator

Thank you so much @eliot-akira!

@adamziel adamziel merged commit 5c5dbc1 into WordPress:trunk May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add EditorConfig properties for indent style and size

2 participants