how to disable new line in creating a foreach loop?

已回答

what I want:

for( : ) {
   
}

what idea created:

for( :
) {
   
}

and I don't want this new line after ":" but i have no idea how to config it.

0

At Preferences | Editor | Code Style | Java  - 'for()' statement turn off Place ')' on new line.

1

请先登录再写评论。