Is there way to expand all folders in Eclipse project view and search results?

前端 未结 12 888
谎友^
谎友^ 2020-12-13 01:59

I\'m spending a lot of time manually expanding deeply-nested folders in tree views like the Project Explorer and the File Search result tree. Is there a keyboard shortcut or

12条回答
  •  被撕碎了的回忆
    2020-12-13 02:53

    In Windows: ( I'm using STS v2.8 based on Eclipse 3.7, maybe a little different... )

    in Project/Package Explorer:

    Expand all : Shift + Numpad *

    Collpse all: Ctrl + Shift + Numberpad_Divide, or just click the small "-" icon at the top right of current view.

    But from wat I can see, Expand All action always make the Eclipse/STS not responding (e.x, we may set class files - compiled or in JARs - visible in current view, which cause too many file to be expanded), so maybe it's better to select specified package first.

    Also these shortcuts very helpful to locate files:

    Ctrl + Shift + R: open resource ( all file types, java, jsp, jspf, properties ...), it's my most frequent use and favorite shortcut;

    Ctrl + Shift + T: open type ( for Java files only)

    In Search result tab, there are Expand All(+ sign with border) and Collapse All(- sign with border) icons at the top right of the tab.

提交回复
热议问题