创建可折叠的代码块 eclipse

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12037188/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:49:45  来源:igfitidea点击:

create collapsible code block eclipse

eclipse

提问by Setsuna

To make my code clean and tidy on eclipse, I wonder if it is feasible to code surrounded by Any tag to be able to retract as a function. I use eclipse "Juno" for android development.

为了使我的代码在eclipse上干净整洁,我想知道用Any标记包围的代码是否可以作为函数收回。我使用eclipse“Juno”进行android开发。

采纳答案by VonC

Yes, you can use the plugin "Coffee Bytes Code Folding".
With Indigo or Juno, you might need to grab the latest version of that plugin at "this page" (or google "com.cb.eclipse.folding_1.0.7.jar" for Juno-compatible version).

是的,您可以使用插件“ Coffee Bytes Code Folding”。
使用 Indigo 或 Juno,您可能需要在“此页面”(或 google“ com.cb.eclipse.folding_1.0.7.jar”以获得与 Juno 兼容的版本)获取该插件的最新版本。

You will find all the illustrations in the SO question: "How to use Coffee-Bytes code folding":

您将在 SO 问题中找到所有插图:“如何使用 Coffee-Bytes 代码折叠”:

custom folding region

自定义折叠区域