Skip to content

Configure preferred quote style for auto imports and generated code #49653

@mjbvz

Description

@mjbvz

Problem
For auto imports, TS will currently infer the quote style to use (single or double) from other imports in the file. For files without any existing imports, we always default to double quotes

Fix
With TS 2.9, add a new "javascript.preferences.quoteStyle and "typescript.preferences.quoteStyle setting that explicitly sets which quote style to use

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions