【问题标题】:How to make Eclipse (pydev) automatically fold all comments when opening a file?如何使Eclipse(pydev)在打开文件时自动折叠所有注释?
【发布时间】:2011-11-07 10:28:51
【问题描述】:

当我打开一个python文件时,eclipse(编辑:windows下)有没有办法自动折叠所有的cmets和docstrings?

【问题讨论】:

  • 我不明白你的问题,PyDev不会自动识别你的python文件吗?
  • yy 但是所有 cmets 和 docstrings 都打开了,我想配置 eclipse 所以所有 cmets 等都关闭了

标签: python eclipse pydev folding


【解决方案1】:

此功能现在在 PyDev 中可用,可以通过进入首选项来启用:

PyDev > Editor > Code Folding

然后选择最初要折叠的内容。

即:

【讨论】:

    【解决方案2】:

    默认情况下,循环和条件折叠被禁用,要启用它们,请转到 Window -> Preferences -> PyDev -> Editor -> Code Folding。对所有条目应用代码折叠

    【讨论】:

      猜你喜欢
      • 2012-08-11
      • 2023-03-12
      • 2016-01-31
      • 2021-12-09
      • 2018-11-11
      • 1970-01-01
      • 1970-01-01
      • 2022-09-22
      • 2021-04-10
      相关资源
      最近更新 更多