问题
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 grep
ping 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