Microsoft/vscode
Auf GitHub ansehen[json] builtin json formatter doesn't support format-on-paste
Open
#228.528 geöffnet am 13. Sept. 2024
feature-requestformattinghelp wantedjson
Repository-Metriken
- Stars
- (74.848 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)
Beschreibung
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.94.0-insider (Universal)
- OS Version: Darwin x64 23.6.0
Steps to Reproduce:
- Enable
editor.formatOnPasteandeditor.formatOnSaveand seteditor.defaultFormatterto "vscode.json-language-features" for json files. - Paste a line into a json file that is not indented correctly.
Result: The pasted line is not formatted on paste, but is formatted once the file is saved. If the same steps are tried with another file type such as TypeScript the pasted line is formatted as expected.
https://github.com/user-attachments/assets/3dc9499a-4288-49ce-848c-5300b7d99293