Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » eclipse 4.6 can't keep the code style of annotation in eclipse 4.4(eclipse 4.6 can't keep the code style of annotation in eclipse 4.4)
icon8.gif  eclipse 4.6 can't keep the code style of annotation in eclipse 4.4 [message #1746953] Mon, 07 November 2016 21:14
Eclipse UserFriend
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.
Confused 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?
Previous Topic:How to enable link-recognition in console window?
Next Topic:Problem to start Neon
Goto Forum:
  


Current Time: Tue Jun 24 01:05:48 EDT 2025

Powered by FUDForum. Page generated in 0.06575 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top