Mac OS X comment block - command + slash

已回答

Hi,

I'm new using Rubymine. I want to know how to comment blocks of code but when I use the shortcut (command+slash) help menu is showed.

How can I comment blocks of code in Mac OS X?

 

Best regards.

4

What is your system keyboard layout? What shortcuts are assigned to 'Comment with Block Comment' and 'Help' actions in Preferences | Keymap?

-1

I have this problem, too, Italian layout.

1

Same problem, but in Intellij. Comment block CMD + SHIFT + FORWARD SLASH (or Question mark) clashes with OSX key-mapping. Take a look at https://support.apple.com/en-gb/HT201236 

You can see:

Shift–Command–
Question mark (?)
Open the Help menu.

I'd gladly disable OSX help keymap as I don't care for that, if I knew how... 

1

To diable OSX key mapping just follow below steps:

Click on Apple icon => System Preference => keyboard => shortcuts => App shortcuts=> uncheck show help menu

22

Apart from "show help menu", CMD-/ is also clashing with "hide or show the status bar in Finder" :/

1

I've the same problem, if it matters work fine with mac keyboard with numeric pad but not with the wireless compact one, and i have already disabled the app shortcuts.

Another thing if i press CMD + ( SHIFT + 7 = / ) with opened code menu the shortcut works, but if is close i see che code menu highlighted

0

I have the same problem as Raffaele Decarli. Only this is for my built in Macbook Pro keyboard with Touch bar. 

2

Same problem. Surprised this is still alive.

2

same problem. any solutions yet?

 

 

0

Hello,

there's a corresponding request on our tracker, please check the proposed workaround:

https://youtrack.jetbrains.com/issue/IDEA-212375#focus=streamItem-27-3481946.0-0

0

i solve this problem this way.

firstly you have to go pycharm>preferences menu. you will see keymap sub menu left side on windows then click here.

then you will see main menu right side open this menu's sub menu, you will see code sub menu.

comment shortcut is here(this area name is -comment with line comment-) . you need clear others shortcut and add new shortcut here.

 

6

This information is really very useful for all Mac users. I was facing iTunes verification error. I have verified this properly but again it is showing iTunes verification failed. I am looking for the proper solution.

0

 

Add a keyboard shortcut in the "Comment with LINE comment" like in the photo. I use "Shift + command + 7", seven is where my slash "/" is. 

 

1

It worked for me doing this:

1 - I deleted the shortcut for help :  > preferences > keyboard > shortcuts > application shortcut (uncheck show help menu)

2 - I remapped the shortcut in Webstorm : preferences > Keymap > Main Menu > Code > Comment With Block Comment (right click to delete all previous shortcuts THEN Add Keyboard Shortcut ⇧:)

  I can now use the same shortcut than in my others IDE.

2

请先登录再写评论。