[英]PyScripter Python 2.7 - summarize lines of code into one line (visually)
I was previously working on C++ on VisualStudio and when I was creating a Class, a Function or some lines of code, I remember I could "summarize" all the lines relative to one function for example into only one line that had the name of the function and a little "+" on the side and when you clicked on it, it showed you the entire function code associated with. 我以前在VisualStudio上使用C ++,当我创建一个类,一个函数或一些代码行时,我记得我可以将与一个函数相关的所有行“汇总”为例如仅一行名称为函数,并在侧面有一个小“ +”号,当您单击它时,它会向您显示与之相关的整个功能代码。 It was really usefull in order to see clearly through a script not by showing the entire (non necessary) code.
为了使脚本清晰可见,而不是显示整个(不必要的)代码,这确实很有用。
I was wondering if it's possible with Python on PyScripter and how to do this? 我想知道在PyScripter上使用Python是否可行,以及如何做到这一点? I have a lot of functions or lines that I would like to "hide" and just summarize as one (describing the name of the function, or just a comment) to see more clearly through my code.
我有很多函数或行想“隐藏”,它们只是作为一个摘要(描述了函数的名称,或仅是注释),以使我的代码更清晰地看到。
Thank you. 谢谢。
This is called code folding. 这称为代码折叠。 Recent versions of PyScripter provide code folding.
PyScripter的最新版本提供代码折叠。 Download PyScripter from https://sourceforge.net/projects/pyscripter/files .
从https://sourceforge.net/projects/pyscripter/files下载PyScripter。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.