Any way to group methods in Java/Eclipse?

前端 未结 6 2199
感动是毒
感动是毒 2021-02-12 15:11

I would like to be able to group similar methods and have them appear in my Outline view in Eclipse. This makes navigating large swaths of code a little easier on the eye, and e

6条回答
  •  渐次进展
    2021-02-12 15:31

    To help with Vineet Reynolds answer, I would also like to offer this:

    USAGE:

    in User Defined Regions tab use e.g.:
    
    Start identifier: region    
    End identifier: endregion
    

    In code:

    //region SomeName
    your code
    //endregion SomeName
    

    Installation instructions:

    1. Install plugin
    2. Unpack the downloaded file eclipse-folding-plugin.tar.gz
    3. Copy the contents of the:
    4. features folder => eclipse features folder
    5. plugins folder => eclipse plugins folder
    6. Configure plugin in Eclipse:
    7. Select "Windows->Preferences"
    8. Select "Java->Editor->Folding"
    9. Check the "Enable folding" option
    10. Select "Coffee Bytes Java Folding" in the "Select folding to use:" option
    11. Check "User Defined Regions" in the "General Fold Setting:" option

    This is from: http://kosiara87.blogspot.com/2011/12/how-to-install-coffee-bytes-plugin-in.html

提交回复
热议问题