Prettier-vscode: Doesn't work when VSCode is set to autosave

Created on 6 Sep 2017  路  7Comments  路  Source: prettier/prettier-vscode

I noticed when I enable vs code autosave feature, prettier doesn't work. Do I need extra configuration?

locked

Most helpful comment

@CiGit If I do format_document makes it work. but then I don't want the extra keys. What I've done now is to change from afterDelay to onFocusChange for my files.autosave setting, and it works.

All 7 comments

Do you mean formatOnSave?

yes formatOnSave

Does it work if you call Format Document ?
Does it take time? ~ 1sec

I have the same problem, and it works when calling format Document

@CiGit If I do format_document makes it work. but then I don't want the extra keys. What I've done now is to change from afterDelay to onFocusChange for my files.autosave setting, and it works.

Documentation for formatOnSave:

// Format a file on save. A formatter must be available, the file must not be auto-saved, and editor must not be shutting down.
"editor.formatOnSave": false,

The file must not be auto-saved for the important part here.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

screendriver picture screendriver  路  4Comments

mshehadeh picture mshehadeh  路  4Comments

finalclass picture finalclass  路  4Comments

sebastijandumancic picture sebastijandumancic  路  4Comments

peralmq picture peralmq  路  3Comments