Skip to content

Add EditorConfig properties for indent style and size #426

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

eliot-akira
Copy link
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
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