Skip to content

Implement format on type for proper indentation #1613

Closed
@brettcannon

Description

@brettcannon

microsoft/vscode-python#481 is the most requested feature in PVSC. Solving it via format-on-type is probably the easiest and most consistent way. Since Pylance knows what the indentation level is, when things would only be syntactically appropriate if it was dedented, etc., Pylance is probably in a great position to be able to support this via https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#textDocument_onTypeFormatting.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfixed in next version (main)A fix has been implemented and will appear in an upcoming version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions