Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Ren'Py docsupNew to Visual Studio Code? Get it now.
Ren'Py docsup

Ren'Py docsup

LKDG

|
1 install
| (0) | Free
Show docstring hover for Python code in .rpy files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ren'Py 文档索引(Ren'Py docsup)

为 Ren'Py 项目的 python: 和 init python: 块提供文档字符串索引,支持函数/变量的 Hover 文档预览 和 跳转到定义。 ps:仅支持三重引号

✨ 功能

1765227577482

  • Hover 悬停在 Python 代码上,自动显示:
    • 函数签名(含返回类型推断)
    • 变量类型(如 hp: int)ps:可能存在部分问题
    • Docstring 文档
  • 自动类型推断 未写 -> type 注解,会尝试从 return 语句简单的推断返回类型。
  • 重建索引 命令面板执行 “renpy重建索引”
  • 跳转到定义 ps:可能存在部分问题

TODO

  • [ ] 作用域判断
  • [ ] 对$的支持
  • [ ] 对类的支持
  • [ ] 对文档字符串的部分格式做出美化

🛠️ 使用方法

  1. 安装此插件
  2. 打开.rpy文件并将鼠标放至函数、变量上即可
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft