java - customize organize import in eclipse -


I am using import in eclipse and it is one of the best features of eclipse

But can I import the import of the way I want it?

East

  @ override protected void form (bundle saved instainstate) {super.naught (savedinstenstate); SetContentView (R.layout.activity_main); }   

But I should have something like this. @ Override Protected Zero (Bundle Saved Instantstate) {super.onCreate (SavedInstanceState); SetContentView (R.layout.activity_main); }

It organizes the opening brace in the same line as the function. But I want it to be on the next line.

Can I customize this opening bracket to the next line? So whenever I adjust the import, it automatically turns the bracket open in the next line.

Thank you in advance

You can call it source & gt; Format command ( Ctrl + Shift + F , on Mac, it is CMD + Shift + F ).

How the code is formatted Preferences> is set to Java & gt; Code style & gt; Formatter . Edit an existing profile or create a new one and look at the braces section.

When you save the file in Preferences>, you can set the formatting to complete automatically. Java & gt; Editor & gt; Save task .

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -