eclipse 4.6 can't keep the code style of annotation in eclipse 4.4 [message #1746953] |
Tue, 08 November 2016 02:14 |
Xuanren Lu Messages: 1 Registered: November 2016 |
Junior Member |
|
|
in eclipse 4.4,my code style is like this
@MyAnnotation(
testTag = "Tag1",
testTitle = "Title1")
@Test(groups = { "installation" })
public void test_BSP_USE_INST_019() {
//
}
After move to 4.6, it become this.
@MyAnnotation(testTag = "Tag1", testTitle = "Title1")
public void test_BSP_USE_INST_019() {
//
}
when i use maven to build my project, it will change the code style about annotations, and then this change will present in git.
Although i don't change my code, git show me that my project have totally big changes. i want to keep my code style of annnotation, and i have tried to solve this problem.
i found a parentheses column in format settings in eclipse 4.6 which doesn't exit in eclipse 4.4. there is a select option about annotation's style and i have to select one in the option list.
what's a shame, there is no option about keep the code style as it's originally been. By the way, there is option named "preserve positons", but it doesn't work as i expected.
Could you give me some advice to solve my problem?
|
|
|
Powered by
FUDForum. Page generated in 0.03466 seconds