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

[FEATURE] Add an .editorconfig file #940

Merged
merged 1 commit into from
Nov 22, 2020
Merged

[FEATURE] Add an .editorconfig file #940

merged 1 commit into from
Nov 22, 2020

Conversation

oliverklee
Copy link
Contributor

This allows IDEs to automatically set the basic code formatting options.

Fixes #781

Copy link
Contributor

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just have a query about the indentation for .md files.

# MD files
[*.md]
indent_style = space
indent_size = 4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not have 2 spaces for indenting in .md files - e.g. in bulleted lists - or is the indentation for lists something different?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to these style guides, it's 4 spaces (for code and lists where we do not use use hanging indent determined by the number of digits):

This setting in the .editorconfig only determine what the tab key does, not what a linter might expect.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

This allows IDEs to automatically set the basic code formatting options.

Fixes #781
# MD files
[*.md]
indent_style = space
indent_size = 4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

@JakeQZ JakeQZ merged commit f7ad1d9 into master Nov 22, 2020
@JakeQZ JakeQZ deleted the feature/editorconfig branch November 22, 2020 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an editorconfig file
2 participants