Search code examples
goland

How to stop GoLand from hiding/folding return statements?


Since the recent GoLand update I am seeing all return statements folded, as in the image below.

GoLand folded/hidden return statement

How can I make GoLand show all return statements not folded or hidden, as they are in the actual code?


Solution

  • Go to Settings/Preferences | Editor | General | Code Folding | Go and toggle them on/off as needed.

    To make this happen for new projects as well, go to File/Apple menu | Other Settings | Settings for New Projects | Editor | General | Code Folding | Go and toggle them there.

    Feedback on why you don't want these and for how long you tried them would be useful.