Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Tue, 08 November 2016 02:14
Xuanren Lu is currently offline Xuanren LuFriend
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.
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: Sat Oct 05 12:59:19 GMT 2024

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

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

Back to the top