【问题标题】:Prevent Eclipse from automatically folding the import statements防止 Eclipse 自动折叠导入语句
【发布时间】:2011-10-10 21:48:35
【问题描述】:

我搜索了 Eclipse 设置、Web 和 StackOverflow,但找不到答案。 Eclipse 总是折叠导入语句,我无法关闭它。

【问题讨论】:

    标签: java eclipse


    【解决方案1】:

    转到窗口/首选项,在搜索框中输入“import”,找到“Folding”部分并取消选中“Imports”。

    (我喜欢首选项搜索功能。或者,您可以转到 Java / Editor / Folding 并以这种方式取消勾选。)

    【讨论】:

      【解决方案2】:

      从菜单中

      Window -> preferences -> java -> editor -> Folding -> "Uncheck box for imports"
      

      必要时重新打开文件。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2010-11-28
        • 1970-01-01
        • 1970-01-01
        • 2018-06-23
        • 1970-01-01
        • 2018-10-05
        • 2013-10-03
        • 2017-10-24
        相关资源
        最近更新 更多