Comment shortcut not works and other isuues
Hi everyone,
i'm not the PPStorm ninja and i have some problem in it.
Issues:
-syntax highlighting
- code compilations
-inspections
-comment/de-comment shortcut
not working .
Any idea what i have to set or check to fix these issues?
Thank you

Please sign in to leave a comment.
Hi,
Could you please tell us more about these issues?
What OS and IDE version do you have? Are you using a national keyboard by the chance?
I use on Monterey, MBA M1, int english keyboard
PHPStorm v: 2021.2..4
sometimes it able to comment codes but i can't de-comment it,
no code formatting at all,
syntax highlight is missing in php files (blades looks ok)
Please open "Keymap" settings window, navigate to "Find shortcut" and then press the comment shortcut there.

Would it find anything?
As for the missing syntax highlighting, would it be possible to share one of the affected files?
i can share with you any files, it happens any files randomly, syntax bug mostly normal php file (it works with 'blade'), comment function same, in blade ok, in .php not
What I meant is the "Find shortcut" option, it will allow to understand how exactly IDE understands CMD+/ keypress, let me show:
Also, could you please try to update the IDE to the latest available build (2022.1.3) and check if syntax highlight issues are still there?
it looks like works
Would it be possible to share the specific code sample (or a screencast) where comment function does not work?
here it is a small screencast with all bugs (no code format in save, no code comment if php is inside html, no code completion)
https://youtu.be/BtGk6F3MGlM
@Tomi
Based on your screencast, it is noticeable that it stops working when the code is moved into a DIV element.
It seems to me that you have somehow (accidentally) injected another language into <div class="test">
Settings/Preferences | Editor | Language Injections -- check there for any entries that have "IDE" or "Project" in the Scope column. One of them might be causing the issue.
ohh you are my man!! thank you,
this guy made the trouble

it looks like everything is working well
many thanks!!!
@Tomi
1. Does the formatting work when you invoke it manually in the editor? What shortcut (better, what menu action) do you use for that (just in case)?
I personally do not use "autoformat on save", only manually when needed so do not have any real ideas/possible reasons right now.
2. If it works on manual invocation, please share your code example + export of your Code Style (as a XML file) -- share them via Google Drive/Dropbox or alike.
This way we can download and try it locally.
Try a simple code first (e.g. only PHP or HTML). If it needs to be the mix of them, make another file. This way it should be easier to diagnose the possible reason.
sorry, it works too,
thank you very much!!