Skip to content

feat: allow turning off automatic creation of class body when creating a new java file#4336

Open
fbricon wants to merge 1 commit intoredhat-developer:mainfrom
fbricon:disable-code-on-new-file
Open

feat: allow turning off automatic creation of class body when creating a new java file#4336
fbricon wants to merge 1 commit intoredhat-developer:mainfrom
fbricon:disable-code-on-new-file

Conversation

@fbricon
Copy link
Collaborator

@fbricon fbricon commented Feb 12, 2026

Adds a new java.templates.newFile.enabled setting to enable/disable automatic generation of class body and package declaration when creating a new Java file. Set to false to create empty Java files. Defaults to true.

Fixes #2652

…g a new java file

Signed-off-by: Fred Bricon <fbricon@gmail.com>
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

Successfully merging this pull request may close these issues.

How to turn off the automatic creation of class body when creating a new java file

1 participant