开发者

Eclipse plugin to define distinct background colors for cohesive parts of a source file?

开发者 https://www.devze.com 2023-03-06 06:03 出处:网络
Is there a plugin/feature in eclipse that enables you to separate parts of a java source file with distinct background colors? Preferably, this feature could be switched on/off.

Is there a plugin/feature in eclipse that enables you to separate parts of a java source file with distinct background colors? Preferably, this feature could be switched on/off.

This would come handy when handling extremely large source files. I'd assign different background colors for parts of the file that handle e.g. initialization, UI events, whatever. I think this would improve readability.

So do you know a plugin that can do this? Any other solution/suggestion is welcome that helps navigation in large source开发者_运维问答 files.


Don't know of any plug-in that would paint the editor background in different colors based on the code, but you can improve readability of large files using code folding. Coffee-bytes is a plug-in that gives you the ability to manually specify folding regions based on identifiers in code. See this answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号