Skip to content

Latest commit

 

History

History
41 lines (21 loc) · 1.59 KB

code-completion.md

File metadata and controls

41 lines (21 loc) · 1.59 KB

Code completion

Automatic imports

Use Ctrl+Space with a variable highlighted to activate auto-import.

auto-import

Auto completion of class methods

code-completion

Auto completion of variable names and other words

Just start typing, and VS Code will try to guess the word based on context.

code-completion-2 (2)

Snippets

For reusable code constructs, you can create custom snippets that are activated based on a key word.

snippet-example

Auto-generating python docstrings

Configured with the proper extensions, VS Code will automatically generate starter-docstrings for Python modules, classes, and methods.

auto-docstring (1)

Auto close parentheses / quotes

VS Code will smartly close parentheses and quotes for you as you type.

auto-close-paren

Quotes or parentheses around selected code

Try selecting code and typing a single [Quote]

auto-quote