Pycharm Comment not working on mac

已回答

So this is very strange.

 

My shortcut for "comment with line" is set to "cmd + /"
It does nothing...

If i however use "cmd + shift + /" I can see that pycharm is trying to perform an action in the code tab, but still does nothing regarding commenting code.

If i then open the code tap and press "cmd + shift + /" it comments the line as it's supposed to...

How can i solve this issue?

Ps keyboard layout is Danish on a macbook pro - mjlt2DK

2

You could either remap the shortcut for Comment with Line Comment action to the one that works in Preferences| Keymap or revert to the older behavior as described here: https://intellij-support.jetbrains.com/hc/en-us/articles/115000616724-MacOS-The-shortcuts-work-unexpectedly-after-2017-1-update.

0

I'm having the same issue

0

But I still don't get how can I fix this...I only want to comment with "CMD+/" (as I'm trying to move from VSCode to PyCharm)

0

@A.Pinto,

Have you tried Anna's suggestion above, has it not helped?

0

The thing is that it's not only shortcut that's not working: most of key shortcuts aren't working!

So try to change them one by one is not an option.

I'd expect something more akin to real support from your side on this issue.

 

0

Hi, which keymap do you have selected in Settings | Keymap? Could you please also specify your OS and PyCharm version, keyboard layout used? Please feel free to create a ticket in PyCharm bug tracker https://youtrack.jetbrains.com/issues/PY

0

I'm following IDEA-165950.

Right now, I have problems with select All and Comment Line...for me these are heavily used shortcuts, so this is really becoming impossible to use

0

请先登录再写评论。