Skip to content
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

Add editor config for 4 spaces instead of tab. #2038

Closed
wants to merge 1 commit into from

Conversation

kudaba
Copy link
Contributor

@kudaba kudaba commented Aug 23, 2018

Allow automatic enforcement of spacing rule for supported editors. I use tabs in my code and this makes it so I don't have to think about it.

@ocornut
Copy link
Owner

ocornut commented Aug 23, 2018

Thank you. Is there any way that to know of for this file to not be stored in the root directory of the repo, and yet be picked by the tools?

@ice1000
Copy link
Contributor

ice1000 commented Aug 23, 2018

When opening a file, EditorConfig plugins look for a file named .editorconfig in the directory of the opened file and in every parent directory. A search for .editorconfig files will stop if the root filepath is reached or an EditorConfig file with root=true is found.

Taken from https://editorconfig.org/

@ocornut
Copy link
Owner

ocornut commented Jan 16, 2019

Merged this, thank you @kudaba !

ocornut added a commit that referenced this pull request Jan 16, 2019
@ocornut ocornut closed this Jan 16, 2019
ocornut added a commit that referenced this pull request Jan 20, 2019
ocornut added a commit that referenced this pull request Jan 20, 2019
@kudaba kudaba deleted the add_editor_config branch February 22, 2019 06:17
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.

3 participants