Shortcut for Block Comment is not working

已回答

it should be a very simple task but really I dont know how to solve this problem!

I use Pycharm and I have an Italian keyobard so no / on my keyboard (to do it I have to press Shift + 7), and the built in shortcut to comment a block of code in Pycharm is Ctrl + /. So I decided to create my own shortcut but nothing seems to work!

The strange thing is that I have tried to create my own shortcut for other commands, like for example Run or Search everywhere and with no problems I have inserted Alt + R or Alt + X and they all works perfectly! The only command that doesnt accept my own shortcut is Comment with Block Comment (by the way, as you can see from the screenshoot below, I have tried the same combinations of Search everywhereAlt + X, so its not a problem of the particulare keys that I have choosen). I post a screenshot of my screen (the Keymap that I use is Windows, changing the Keymap to others like Eclipse or Emacs doesnt change the result).

If anyone had the same, or similar problem and can give me some help it would be very appreciate!

 

1

This specific action isn't supported for Python yet https://youtrack.jetbrains.com/issue/PY-6185/Block-comments-in-python-files, mostly because there aren't block comments in Python (at least triple-quoted ones aren't officially considered as block comments).

To comment out multiple lines of code, you can use the same Comment with Line Comment action.

0

请先登录再写评论。