eclipse manual code folding similar to visual studio region

只谈情不闲聊 提交于 2020-01-01 05:41:29

问题


visual studio has an excellent feature for manual code folding by using regions. i am new to eclipse and android but cant find figure out how to do this in eclipse. i am missing this feature in eclipse desperately

has anyone achieved this in eclipse

thanks in advance


回答1:


I use eclipse Coffee-Bytes plugin over a year. This eclipse folding plugin can be configured so that it was identical to visual studio folding. Lock this and this. Hope it's help you.




回答2:


Manual code folding can be added by writing your own small Eclipse plug-in. What it take is implementing two classes and packing them into an Eclipse plug-in that registers onto the org.eclipse.jdt.ui.foldingStructureProvider extension-point.

This is probably not the awnser you were hoping from, but as far as I know the only way to add custom code folding to the Eclipse Java editor. From your question I see that you are mostly a visual-studio user and as such not familiar with Eclipse plug-in architecture, but depending on your experience with general plug-in architectures, extending Eclipse is (in small scale) pretty straight forward.



来源:https://stackoverflow.com/questions/5144791/eclipse-manual-code-folding-similar-to-visual-studio-region

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!