Skip to content

Snippet support in completions #924

@leungbk

Description

@leungbk

It would be nice if snippets were given in completions. For example, with the insertion point at [-] in

def factorial(n: int) -> int:
    return 1 if n == 0 else n * fa[-]

one of the completions could be, using snippet syntax,

factorial${1:(${2:n: int})}

Type-inferencing could be useful here to let us automatically drop the outer pair of braces depending on context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions