generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
Settings/ConfigIf there are missing setting or configarationIf there are missing setting or configarationdiscussionGeneral Discussion or clarification questionGeneral Discussion or clarification question
Description
Description
After installing the EditorConfig extension and applying the following configuration via .editorconfig
:
root = true
[*]
end_of_line = lf
insert_final_newline = true
[*.{java,html,css,js}]
charset = utf-8
indent_style = space
indent_size = 2
I have noticed that Java code is still being formatted with four spaces instead of the specified two spaces.
Steps to Reproduce
- Install the EditorConfig extension.
- Apply the provided
.editorconfig
configuration. - Open a Java file.
- Run the formatter and observe the indentation.
Expected Behavior
Java code should be formatted with two spaces as specified in the .editorconfig
file.
Actual Behavior
Java code is formatted with four spaces.
Additional Information
It appears that javavscode does not offer any way to configure how the code is formatted, which is acceptable. However, it would be nice if it did not conflict with other widely used tools like the EditorConfig extension.
Metadata
Metadata
Assignees
Labels
Settings/ConfigIf there are missing setting or configarationIf there are missing setting or configarationdiscussionGeneral Discussion or clarification questionGeneral Discussion or clarification question