How do I auto-align the source code in Eclipse?

Asked 2 years ago, Updated 2 years ago, 46 views

For example,

public static void main(String[] args){
System.out.println("aaa");
}

If you have a code like this

public static void main(String[] args){
    System.out.println("aaa");
}
Isn't there a function to make it like this?

eclipse java align

2022-09-22 11:02

1 Answers

Press Ctrl + Shift + F.


2022-09-22 11:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.