Skip to content

NCBM/charming-completions

Repository files navigation

Charming Completions

This extension provides extra completion support for Python in VSCode.

Features

Postfix completions

Allowing to use some postfix to wrap a value. Inspired from other editors.

Examples

print

await

multiple

comprehension

List of supported functions/keywords

  • Functions (foo.xxx => xxx(foo))
    • print
    • repr
    • id
    • hash
    • len
    • abs
    • sum
    • round
    • str
    • int
    • float
    • bool
    • type
    • list
  • Keywords (foo.xxx => xxx foo)
    • assert
    • await
    • del
    • raise
    • return
    • yield
  • Others
    • foreach => for i in ...:
    • forenum => for i, elem in enumerate(...):
    • aforeach => async for i in ...:
    • comp => expr for i in ...
    • acomp => expr async for i in ...

Re-export completions

Providing a shortcut for re-exporting.

reexport

Requirements

  • VSCode >= 1.74

Extension Settings

This extension contributes the following settings:

  • No settings available.