Skip to content

format at formatOnPaste: true  #16

@CoffeeChaton

Description

@CoffeeChaton
  1. https://youtu.be/uouQthFaaz0 "editor.formatOnPaste": false vs "editor.formatOnPaste": true.
  2. https://youtu.be/pXra4k309XY mouse jumps far.
// settings.json

{
    // bad case
    "editor.formatOnPaste": true,
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "typescript.format.semicolons": "insert",
    "[json-tmLanguage]": {
        "editor.defaultFormatter": "RedCMD.tmlanguage-syntax-highlighter"
    },
}

if "editor.formatOnPaste": true , format will get weird for a moment,
for me, the biggest problem is that the mouse will wander far away, like exp2.

I think may the latest status was not updated (via onDidChangeTextDocument()) before Format.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions