Make cursor auto formatting with prettier working

I can’t make working with typescript, I tried to disabled all extension, any experience with prettier and auto formatting ? from my side it works perfect in my vscode project.

1 Like

I agreed with this, should not bug report but feature request
@deanrie

2 Likes

I fixed, just installed Prettier ESLint from rvest, and add in settings.json:

{
  "editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
  "editor.formatOnType": false, // required
  "editor.formatOnPaste": true, // optional
  "editor.formatOnSave": true, // optional
  "editor.formatOnSaveMode": "file", // required to format on save
  "files.autoSave": "onFocusChange", // optional but recommended
  "vs-code-prettier-eslint.prettierLast": false // set as "true" to run 'prettier' last not first
}

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.