krasa / EclipseCodeFormatter

IntelliJ plugin - use Eclipse's code formatter directly from IntelliJ. https://plugins.jetbrains.com/plugin/6546
Apache License 2.0
484 stars 117 forks source link

Default Settings are not applied to new projects #231

Open renoth opened 2 years ago

renoth commented 2 years ago

What steps will reproduce the issue?

Set the default settings for new projects to enable Eclipse code formatter with specific Profile Create a new Project and open it Autoformat a file in the new project

What is the expected result?

File is formatted with Eclipse Codeformatter plugin Eclipse codeformatter is active in current project settings

What happens instead?

Eclipse Codeformatter is disabled in current project settings

Сonsider attaching a screenshot, screencast, or a code sample when it's hard to articulate the problem.

image Default Settings image

Paste information about IDE and OS (it can be copied from Help | About dialog).

IntelliJ IDEA 2021.2.2 (Ultimate Edition)
Build #IU-212.5284.40, built on September 14, 2021
Runtime version: 11.0.12+7-b1504.28 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4000M
Cores: 4
Registry: ide.balloon.shadow.size=0
Non-Bundled Plugins: org.nik.presentation-assistant (1.0.9), Key Promoter X (2021.2), com.intellij.plugins.watcher (212.5080.8), krasa.nonProjectFilesUnlocker (1.2), WicketForge (6.0.3), EclipseCodeFormatter (20.9.203.000.0-Eclipse_2020-06-JavaOnly), com.dubreuia (2.2.0), zielu.gittoolbox (212.7.15), GrepConsole (11.11.211.6086.0), org.mapstruct.intellij (1.3.0), org.sonarlint.idea (6.0.0.37696)
krasa commented 2 years ago

The problem seems to be, that IntelliJ does not apply default settings to projects created from a template, you can try it on other things, like File | Settings | Build, Execution, Deployment | Compiler, it behaves the same.