Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop GoLand from hiding/folding return statements?

Tags:

goland

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?

like image 563
sdgluck Avatar asked Dec 13 '19 10:12

sdgluck


People also ask

How do I minimize all methods in IntelliJ?

To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + . IntelliJ IDEA collapses or expands all fragments within the selection, or, if nothing is selected, all fragments in the current file, for example, all methods in a file.


1 Answers

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.

like image 188
dlsniper Avatar answered Jan 02 '23 05:01

dlsniper