You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
Uh oh!
There was an error while loading. Please reload this page.
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: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.
The text was updated successfully, but these errors were encountered: