【发布时间】:2020-08-04 18:57:06
【问题描述】:
我正在为 Python 项目使用 VS Code。
当我写作时:
class User:
def __init__(self, name, age, group=None):
我希望 VS Code 自动完成以下内容:
class User:
def __init__(self, name, age, group=None):
self.name = name
self.age = age
self.group = group
这可以通过 VS Code 实现吗?我见过其他一些编辑这样做。有这个扩展吗?非常感谢!
【问题讨论】:
-
stackoverflow.com/a/58228253/9938317 Python 类需要稍微修改一下 sn-p
标签: visual-studio-code vscode-settings