google / google/styleguide

Incorrectly sorting tags in fxml file

Open
#848 1 comment 0 reactions 0 assignees View on GitHub
lang:java
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

In JavaFX development, the order of tags in the FXML file determines the position properties of UI components. However, when using IntelliJ IDEA and Google style, formatting often reorders my FXML tags, causing my UI components to become misaligned. For example:
![240823 205424](https://github.com/user-attachments/assets/c73e1d4c-1a33-4425-bbcf-c931346ebabd)
The correct should be:
![image](https://github.com/user-attachments/assets/f74c2f3a-b485-4d86-a435-6e47e1074b9a)
![image](https://github.com/user-attachments/assets/a28f8bd4-5ab4-407f-8f8f-9e5513b4ff37)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.