Comment with Line Comment does not work. It's comments on three lines at once
When I try to comment a single line without selecting the text beforehand (just by placing my cursor in the middle of the line), PhpStorm comments me 3 lines.

Strange isn't it?
How can I make it comment just the line where the cursor is?
Please sign in to leave a comment.
Basically, I was not able to reproduce this issue on my end, however, I have a strong feeling that I saw a similar report already (could not recall where exactly, my bad)
Does it happen everywhere, for all file types and projects? A somewhat generic question but what version of IDE do you have installed?
Yes, this happens on all file types.
I am using PHPStorm 2020.1.4. I think the problem wasn't there with version 2019.X.Y (the previous version).
Strange, I am still unable to reproduce it.
Meanwhile, a PhpStorm 2020.2 has been released. Could you please give it a try?
Hi, the problem still exists in PyCharm CE 2020.3.3.
I would be interested in any kind of insight about it!
Thank you!
Does it happen on .py files too? Could you please illustrate it with a screencast?
Thanks for your quick answer!
Yes it happens on .py files. Here is an illustration:
Strangely enough, it only happens when I use the keyboard shortcut. If I go through the menu, i.e. "Code" | "Comment with Line Comment", it behaves properly.
Thanks for sharing the illustration!
Is there any chance that you have a macOS system and any non-English layout? I am asking it as I have managed to find a similar report on YouTrack:
https://youtrack.jetbrains.com/issue/JBR-1387
Well, precisely! I work on macOS with a French keyboard layout.
I tried the workaround mentioned in the issue link you gave me me (switching from a JDK11 to JDK8), but unfortunately PyCharm would not start and would say it requires JDK11 or newer.
I guess I will stay tuned into the issue and wait for a fix. For now I just downgraded to PyCharmCE 2018 where it works fine.
Thanks for your help!