Skip to content

Allow more configuration options for indentation-style (tabs and spaces) #362

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

Closed
lfvjimisola opened this issue Feb 17, 2023 · 1 comment
Closed

Comments

@lfvjimisola
Copy link

lfvjimisola commented Feb 17, 2023

The documentation states that one can change indentation style (tabs or spaces) by placing .springjavaformatconfig to the root of your project with the following content:

indentation-style=spaces

However, it would be preferably to have a centralized way of configuring it. Adding a file for just one setting really clutters the repo (and there are others libraries/tools that do the same).

Preferably, for us would be to be able to set it without adding another file, i.e. with/for Maven in POM.xml and as a setting directly in VS Code.

I understand that this might not get picked up by the other Gradle, Eclipse, IntelliJ and VS Code (+ Maven = Big 5).

Perhaps, it increases the risk since it's not a Single-Source of Truth setting anymore.

Essentially, this issue is about avoiding having to add yet another file to the repo (reduce clutter) but it might not be possible.

@lfvjimisola lfvjimisola changed the title Allow better configuration options for indentation-style (tabs and spaces) Allow more configuration options for indentation-style (tabs and spaces) Feb 17, 2023
@philwebb
Copy link
Contributor

I'm afraid I've tried to do this before for line widths and failed to find a way that works with all plugins and all IDEs. See #100 (comment) for background. I don't think we can justify the investment needed for this feature, especially as the Spring team generally prefer tabs.

@philwebb philwebb closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants