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

Detect indent from EditorConfig file #58

Closed
jmfayard opened this issue Aug 28, 2019 · 0 comments
Closed

Detect indent from EditorConfig file #58

jmfayard opened this issue Aug 28, 2019 · 0 comments
Labels
good first issue Good for newcomers. Also see up-for-grabs. help wanted Extra attention is needed
Milestone

Comments

@jmfayard
Copy link
Member

jmfayard commented Aug 28, 2019

There is now an option to configure the indent for Libs.kt and Versions.kt

buildSrcVersions {
    indent = "  "
}

Even better would be to auto-detect whether a .editorconfig file is already doing it and do the right thing by default.

https://editorconfig.org/

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

indent_style: set to tab or space to use hard tabs or soft tabs respectively.

indent_size: a whole number defining the number of columns used for each indentation level and the width of soft tabs (when supported). When set to tab, the value of tab_width (if specified) will be used.

@jmfayard jmfayard added enhancement good first issue Good for newcomers. Also see up-for-grabs. help wanted Extra attention is needed labels Aug 28, 2019
jmfayard pushed a commit that referenced this issue Sep 10, 2019
@jmfayard jmfayard added this to the 0.5.0 milestone Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers. Also see up-for-grabs. help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant