Skip to content

auto-suggest the name of argument based off the name of the parameter #25371

Closed
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd

Search Terms

https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue+suggest+name+argument+parameter+

Suggestion

far not always when calling a function you have all arguments ready, sometimes during quick and dirty bootstrap i just need to provide a list of whatever arguments that a function needs, and then work towards making sense of these arguments, for such cases it would be helpful if typescript auto-suggest the names of yet to be defined arguments based off the names of the parameters

Examples

declare function foo(one: number, another: string): boolean;
foo(
 // ^ carret is here, `one` is expected as an auto-suggestion 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureDomain: Completion ListsThe issue relates to showing completion lists in an editorSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions