Shortcut for extract constant not working on Mac (after latest update)
Answered
After newest update 2021.1 Ultimate , option + command + C for extracting a constant is not working. As far as i see there isnt other keymap for that combination.
Please sign in to leave a comment.
Could be a shortcut conflict. Does it help to add another shortcut for this action?
https://i.imgur.com/u2h1FmC.png
I think it is conflicting with a mac shorcut -> briging the window to the center of the screen. But I do not see this shortcut in the mac settings.
Ideally I would remove it from mac since it makes more sense to me to have it as it is in Intellij, similar to extract variable, parameter.
Barba Octavian The shortcut works for me in 2021.3 RC, 2021.2.3 and 2021.1.3.
What is displayed in the IDE Preferences | Keymap if you search Opt+Cmd+C in the "Find action by shortcut"? Please share a screenshot.
If you have any third-party plugins installed, please try disabling them: go to the IDE Preferences | Plugins, press gear button, Disable all downloaded plugins and restart. Does the issue persist after that?
If it does, please provide your IDE About info, specify your keyboard layout and what key combination exactly is used to invoke the Introduce constant action. Are any other actions with Opt+Cmd affected, e.g. Introduce variable (Opt+Cmd+V) or Extract Method (Opt+Cmd+M)?
Hey Ekaterina,
First of all thank you, I learned something new today. How to search shortcuts by typing the shortcut.
My setup: Intellij idea 2021.2.3, macOS Catalina 10.15.7
Here is the screenshot:
Thank you! And what about plugins? Have you succeeded to disable all the downloaded ones and reproduce the issue after that?
Now it works fine and I don't know exactly what I did, with the plugins enabled. Maybe updated from 2021.1 to 2021.2.3.
Anyway, it looks like this works as expected now. Thank you for your help. :)
I had the same issue. I have solved it by disabling hotkeys of 'Tiles' (macOs plugin who uses `Opt+Cmd+C` for Centering windows)