Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why CMD + shift + p not work? #250

Closed
aswind7 opened this issue Oct 27, 2017 · 7 comments
Closed

Why CMD + shift + p not work? #250

aswind7 opened this issue Oct 27, 2017 · 7 comments
Labels
locked Please open a new issue and fill out the template instead of commenting.

Comments

@aswind7
Copy link

aswind7 commented Oct 27, 2017

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..

@azz
Copy link
Member

azz commented Oct 27, 2017

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

@aswind7
Copy link
Author

aswind7 commented Oct 27, 2017

Oh oh, i misunderstanding before. Thanks very much.😁

@aswind7 aswind7 closed this as completed Oct 27, 2017
@victorvasujoseph
Copy link

victorvasujoseph commented Jun 9, 2018

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 !!

@DustyBest
Copy link

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

@HemantRMali
Copy link

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

@devinrhode2
Copy link

devinrhode2 commented Apr 7, 2020

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.

@github-actions
Copy link

github-actions bot commented Jul 6, 2020

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.

@github-actions github-actions bot added the locked Please open a new issue and fill out the template instead of commenting. label Jul 6, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

6 participants