visual-studio-code - 如何使 Python 变量的 vs 代码建议更加模糊?
问题描述
我为它编写 python 代码Odoo
,它在运行时使用某种reflection
或更改的类。这会导致类具有未在类定义中显示的属性和行为(例如:类是“可迭代的”)。
例如,参加这个课程:
class Project(models.Model):
_name = 'project.project'
pre_sales_engineer_id = fields.Many2one("res.users", "Presales Engineer")
def do_something_with_pre_sales(self):
for record in self:
record. # here (after the dot) I would like the auto complete to suggest "pre_sales_engineer_id"
在上面的方法中,我评论了我想要/期望的内容。
我认为这种自动完成功能在过去的某个时候是一个功能,但我不确定。
解决方案
推荐阅读
- c# - 面板控制和检查面板属性为空
- python-3.x - 如何使用 Mac 在 Pycharm 中将 .ARFF 文件转换为 CSV?
- swift - 如何在用户输入“readLine()”中使用二元运算符“%”?
- ios - 在存储的 Fetch Request 中使用自定义谓词时,变量替换的正确语法是什么?
- git - 使用 git subtree 推送到项目根目录
- java - ServerSoket checkOldImpl 方法有什么用?
- react-native - 将数组状态传递给另一个类反应原生
- apache-kafka - 具有不同数据格式的Kafka主题
- r - 如何使用用户选择的参数绘制矩阵?R闪亮
- mysql - 执行函数前的api代码响应(回调)