Comment with Line Comment does not work

Hi

I have small but infuriating problem. I have default settings according to which ctrl + / should comment a line and ctrl + shift + / should comment a block. Instead what it does is folding a block of code. 

any reason why this happens?

 

m

4
Hello,

Thank you for the mail. Could you please send us the logs (`Help | Collect Logs and Diagnostic Data`)? Please keep in mind that `idea.log` might contain sensitive information (e.g local paths).
0

I'm on Ubuntu 24.04 and had the same issue with PyCharm 2024.1.4

I can confirm the keymap works fine again after changing the order of the keyboard layouts in the OS settings (leaving US keyboard on top, other languages in the sequence) and restarting the IDE (it still works even if I change to another layout, as long as US is remains the first option)

Hope that helps

0

Do you use the Use national layout for shortcuts option in Keymap settings: https://www.jetbrains.com/help/idea/settings-keymap.html#other Does it help if you change this option?

0

I have this issue too. For me it has nothing to do with my keyboard. Comments do not work at all, if click on Code → Comment with line comment nothing happens. It is the same for block comments.

This only happens in ERB templates. Normal ruby files work just fine

I am on an M3 Macbook with the latest version of RubyMine 2024.3.1

0
Can you please describe the issue in more detail? Is it specific to the certain file/file type, or happens in all files? A video recording of the issue would be helpful.
0

Hi Elena,
Attached you can find a screen recording.  The Bug actually only happens when I try to add a comment to an empty line. I think the videos does a better job at explaining the Issue.


https://www.youtube.com/watch?v=uQudvdr9gzw

Btw the same problem happens when I use the Keyboard shortcuts, I just clicked the function from the menu so you can better follow.

0

Cengiz Guertusgil thank you for the screencast, I've submitted the corresponding issue to our tracker, so please add your vote there.

0

请先登录再写评论。