Skip to content

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

Merged
fbricon merged 1 commit intoredhat-developer:mainfrom
fbricon:disable-code-on-new-file
Feb 16, 2026
Merged

feat: allow turning off automatic creation of class body when creating a new java file#4336
fbricon merged 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>
@fbricon fbricon force-pushed the disable-code-on-new-file branch from a1efd90 to 9c0c724 Compare February 16, 2026 09:55
@fbricon fbricon merged commit 5884eb5 into redhat-developer:main Feb 16, 2026
2 checks passed
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