I am using prettier and kite as my formatters for my react app in vscode. Everytime i use the shortcut: shift
+ alt
+ f
i get the error: Extension 'Search Result' cannot format vscode
. Even when i highlight and do manually it doesn't work. What do i do?
Asked
Active
Viewed 34 times
0

Mavrickj9
- 25
- 9
-
1what is shown when you `ctrl + shift + p` and search for "Format Document with..." & hit enter? – andrewkeithly Mar 20 '21 at 13:48
-
It displays my formatters lol. I decided to configure the default one so now it works fine thanks! – Mavrickj9 Mar 20 '21 at 13:58
-
just FYI, you can set default formatters per language/file-type in your User or Workspace settings so that you dont have to do this every time. For example: `"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }` – andrewkeithly Mar 20 '21 at 14:04
-
yes thanks @andrewkeithly – Mavrickj9 Mar 21 '21 at 17:29