-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement: method overriding #21343
Comments
I think this very much depends on the language you are using to provide this kind of information. I know for example that in TS we now have a quick fix to implement an interface but I would also love to get this into IntelliSense when I type in the body of the class. Assigning some people for fyi. |
@bpasero On the TypeScript side, microsoft/TypeScript#7158 tracks returning inherited methods in the suggestion list. This suggestion itself would not fill in the full signature , but we could leverage |
For start (and I guess for 80% of cases) it would be cool enough just to make Code to write in the line that's currently whispering (just like in my screens). Thank you wery much, please keep Code making better and better 😉 |
@grafa I think the best in this specific case is to create an issue in the Python extension you are using. I think our completion API is good enough to insert such an edit. |
So I should create the issue for every possible language that can override methods? There is really no way to implement feature in Code itself to be able to write in the current file when a keyboard shortcut is pressed on highlighted whispered item just like I've described in my first post? It seems to me like a pretty much easy solution that solves the problem and is good enough for 99% cases. |
@grafa Yes, I please open issues against the language where you would like to see this functionality. For Python, please file an issue against the Python extension: https://github.com/DonJayamanne/pythonVSCode/issues/new Thanks |
Hi guys,
I often override methods because Django 🤣 I was wondering if Code can help me override methods which whispers me. Like if I hit let's say SHIFT + Enter onto whispered row it would paste the original method definition.
Example:
I type:
I get whispered:
I hit SHIFT + Enter and I get
Thank you and I'm sorry if this is duplicated task. I've looked around but found nothing.
The text was updated successfully, but these errors were encountered: