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

.editorconfig enforcing 2 spaces as indentation #90

Closed
SpechtMagnus opened this issue Jun 5, 2018 · 4 comments
Closed

.editorconfig enforcing 2 spaces as indentation #90

SpechtMagnus opened this issue Jun 5, 2018 · 4 comments

Comments

@SpechtMagnus
Copy link

The .editorconfig in this repository forces 2 spaces as indentation for all filetypes except .yaml. This is a very annoying and hardly spottable bug.

I would advise to completely get rid of the .editorconfig file.

@koppor
Copy link
Member

koppor commented Jun 5, 2018

Could you elaborate more on "annoying"?

Quoting https://editorconfig.org/

EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.

It helps much to maintain this template and ensure consistent formatting. I required 4 spaces in YAML, because of https://github.com/latextemplates/scientific-thesis-template/blob/master/localSettings.yaml.

In my experience, for newcomers, it is easy, if there is a consistent code style in projects. There are articles around justifying that. For instance https://www.smashingmagazine.com/2012/10/why-coding-style-matters/. It is also teached (used to be teached?) in the software engineering studies at USTUTT.

I assume, you added a .yaml file to the repository and had issues there? Then, we could try whether a recent latexindent version has issues with files.

I can also change the .editorconfig to deal with *.tex, *.bib, *.sty?, *.md? only.

@SpechtMagnus
Copy link
Author

SpechtMagnus commented Jun 5, 2018

I can also change the .editorconfig to deal with *.tex, *.bib, *.sty?, *.md? only.

This would be a good solution. My problem mainly concerns other file extensions such as .java and .cpp containing source code that I want to add to my paper.

@koppor
Copy link
Member

koppor commented Jun 6, 2018

Fixed in 6d667ac.

@koppor koppor closed this as completed Jun 6, 2018
@koppor
Copy link
Member

koppor commented Jun 6, 2018

I released 3.0.0-beta.3 (see https://github.com/latextemplates/scientific-thesis-template/releases). Please try that.

This is close to a release. I, however, will check the recommendations regarding the table of contents at Technische Berichte - Verständlich gliedern, gut gestalten, überzeugend vortragen.

Otherwise this template won't receive many updates.

Meanwhile, I'm working on https://github.com/latextemplates/latex-template-generator. Help extremely welcome!

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

No branches or pull requests

2 participants