Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
151 views
in Technique[技术] by (71.8m points)

java - Prevent Eclipse from automatically folding the import statements

I searched the Eclipse settings, the web and StackOverflow, but I couldn't find an answer. Eclipse always folds the import statements and I can't turn it off.

question from:https://stackoverflow.com/questions/7719101/prevent-eclipse-from-automatically-folding-the-import-statements

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Go to Window / Preferences, type "import" into the search box, find the "Folding" section and untick "Imports".

(I love the preferences search feature. Alternatively, you can go to Java / Editor / Folding and untick it that way.)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...