Skip to content

Language Overrides for printWidth Setting in VS Code #3093

@dbagley1

Description

@dbagley1

Problem
Allow language overrides for the VS Code prettier.printWidth option. VS Code settings are easily synchronized between machines and virtual environments like GitHub Codespaces. User-level Prettier configurations are more difficult to keep synchronized between environments leading to inconsistent formatting.

Solution
Update the extension manifest to specify the language-overridable scope on the prettier.printWidth option.

image

Additional context
Language-specific options set in VS Code settings.json would look like:
image

Relevant VS Code Documentation: https://code.visualstudio.com/api/references/contribution-points#Configuration-property-schema

Metadata

Metadata

Assignees

Labels

lockedLocked due to inactivity

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions