spyder-ide / spyder

Official repository for Spyder - The Scientific Python Development Environment
https://www.spyder-ide.org
MIT License
8.37k stars 1.62k forks source link

Hide all docstrings in Editor #20370

Open tlunet opened 1 year ago

tlunet commented 1 year ago

Hi all,

is there a way to automatically hide function docstrings in the editor ? I know one can already hide it by clicking to the right of the line number where it starts, but I did not find any way to do it for all the function in one given file ? This could be useful when developing a source code for know exactly what it does, but we don't want to scroll down or up too much when the code is well documented (especially using numpy docstring style).

If it's not already there and not too complicated, I'm ready to try to do it myself and propose a PR.

PS : did not know where to post this, hope this is the right place ...

ccordoba12 commented 1 year ago

Hey @tlunet, thanks for reporting. You said:

is there a way to automatically hide function docstrings in the editor ?

Unfortunately, that's not possible at the moment, but we'll try to support it in the future.

PS : did not know where to post this, hope this is the right place ...

Don't worry, it was fine to post it here.