VS Code Python Extension Default Snippets

吃可爱长大的小学妹 提交于 2020-07-08 03:29:12

问题


This is a followup to this question. The answer in there properly answers how to override snippets, but it doesn't address the actual location of the default ones.

Recall the problematic snippet I'm trying to override results in code like

def __init__(self, *args, **kwargs):
 return super().__init__(*args, **kwargs)

when writing def __ini and auto-completing — namely it's a snippet for overriden method autocompletion.

I'm trying to find where exactly this problematic snippet is located (so I have an idea of what and how to override in my own) but I can't seem to find it. I've tried grepping for super() in ~/.vscode/extensions, but unsuccessfully. I also couldn't find an overriding-specific snippet in ~/.vscode/extensions/ms-python.python-2019.11.49689/snippets/python.json. Where else could this particular snippet be located?

来源:https://stackoverflow.com/questions/58956592/vs-code-python-extension-default-snippets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!