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 But I should have something like this. 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 How the code is formatted When you save the file in
@ override protected void form (bundle saved instainstate) {super.naught (savedinstenstate); SetContentView (R.layout.activity_main); }
@ Override Protected Zero (Bundle Saved Instantstate) {super.onCreate (SavedInstanceState); SetContentView (R.layout.activity_main); }
source & gt; Format command ( Ctrl + Shift + F , on Mac, it is CMD + Shift + F ).
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.
Preferences>, you can set the formatting to complete automatically. Java & gt; Editor & gt; Save task .
Comments
Post a Comment