liyu
V2EX  ›  JetBrains

pycharm 能显示当前 python 文件下的函数和类的列表吗?

  •  
  •   liyu · Mar 8, 2016 · 16763 views
    This topic created in 3896 days ago, the information mentioned may be changed or developed.

    在 pycharm5.0.3 下找了很久,都没有找到这个功能。

    5 replies  •  2016-10-19 22:26:55 +08:00
    benleewindy
    benleewindy
    Mar 8, 2016
    1
    左侧 project 工具栏窗口顶部那个齿轮有个 show member 选项,默认是不开的,勾选后 py 文件会显示内部定义的 class 和 method
    你是需要这个吗?
    feiyuanqiu
    feiyuanqiu
    Mar 8, 2016
    2
    左边栏: structure
    或者到设置里面 => keymap => file structure
    mac 默认快捷键是 cmd + f12, 我习惯改成 sublime 里面用的 cmd + r
    liyu
    liyu
    OP
    Mar 8, 2016
    3
    @benleewindy 勾选了但是没有效果
    liyu
    liyu
    OP
    Mar 8, 2016
    4
    @feiyuanqiu 就是这个 感谢
    Diaoshe
    Diaoshe
    Oct 19, 2016
    5
    除了楼上的答案 ,在大型文件中寻找类函数关系最好配合 extand 及 collapse
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   676 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 21:07 · PVG 05:07 · LAX 13:07 · JFK 16:07
    ♥ Do have faith in what you're doing.