Prettier-vscode: Why CMD + shift + p not work?

Created on 27 Oct 2017  路  7Comments  路  Source: prettier/prettier-vscode

https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode .
The document says:

1. CMD + Shift + P -> Format Document
OR
1. Select the text you want to Prettify
2. CMD + Shift + P -> Format Selection

I Follow the documentation, CMD + Shift + P didn't work.
But option + shift + F (the vscode default format keybinds) work.
I see CMD + Shift + P is the default key binding of vscode, for 'workbench.action.showCommands',
I am very confused why prettier use this and produce a conflict. and, how to resolve the problem.?? Help..

locked

Most helpful comment

Simple:
Go to extensions, Select Prettier, UnInstall, use opt(alt)+shift+F (VSCode Native)

All 7 comments

CMDShiftP will bring up the command palette. From there you can select "Format Document" or "Format Selection" (as documented). This is the same as the CMDShiftF

Oh oh, i misunderstanding before. Thanks very much.馃榿

You can also change it to your desired key set. Press the 'Setting's icon' in the left end bottom corner and select->keyboard shortcuts. Then type in 'Format Document'. Click the edit icon in the right and select the desired key set using your keyboard. Happy coding !!

Just took me a hot minute to realize that we have to go to 'FORMAT DOCUMENT' after bringing up the command palette. I also thought that it would be like a hot-key that just formats the document. face-palm

Simple:
Go to extensions, Select Prettier, UnInstall, use opt(alt)+shift+F (VSCode Native)

Capto screen recording was intercepting cmd+shift+p for me. ShortcutDetective couldn't identify this. Did not try KeyCue (see https://apple.stackexchange.com/questions/104074/find-which-process-receives-a-given-keyboard-command)

Lets please leave this thread open/not locked so people can continue to add these exceptions they find.

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