Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the setting for folding / unfolding the import statements in java in eclipse by default

Tags:

java

eclipse

I am trying to find the setting in Eclipse where I can have the import block in java expanded by default?

like image 740
Arunabh Das Avatar asked Aug 16 '11 17:08

Arunabh Das


People also ask

How do I manage imports in Eclipse?

1. Go to the line of unused import, press Ctrl + 1, which is an Eclipse shortcut of a quick fix. This will show a drop-down menu to fix this error and one of them will be “remove unused imports.” It will remove that import statement from the Java file.

How do I import a statement into Eclipse?

In Eclipse, to import a single class, you may clicked on the class and press shortcut key “ Ctrl + Space ” to prompt all the available classes to import.

When enabled for a specific section What do you do the preferences in Java editor folding control?

Code Folding enables you to 'collapse', or hide, certain sections of code while you are not working on them. This enables you to manage larger amounts of code within one window.


1 Answers

This is under Preferences -> Java -> Editor -> Folding

like image 54
Arunabh Das Avatar answered Nov 15 '22 21:11

Arunabh Das