Can't write double quotes in Pycharm and Idea
Answered
I am using 2018 Macbook Pro Big Sur. I can't type " in Pycharm and Intellij Idea. By default I use control + option + i shortcut to write " but it won't work on IntelliJ. I am tired of copying and pasting " into my code each time. I suspect this has something related to the shortcuts. Is there a solution to this? Thanks.
Please sign in to leave a comment.
Hi,
What keyboard layout do you use?
Is this shortcut assigned to any action in IDE? (use Find Actions by Shortcut button in keymap settings to check)
Thanks for your reply. The only shortcut assigned to the same keys was the auto-indent lines shortcut (control + option + i ) which I had already replaced. I use Turkish Q keyboard layout in my mac. However, my physical keyboard is US keyboard so I can't use the " button to type ".
buy a turkish keyboard
( joke)
Looks like https://youtrack.jetbrains.com/issue/IDEA-237546
It could be, but It's on Linux and I can type '. I just have problems with " and I am on mac. When I switch my keyboard to US on mac preferences I am able to type " - it just doesn't work with the Turkish keyboard.
Could you please share idea.log ("Help | Show Log in...") after restarting IDE?
Sorry for the late reply. Here is my log file:
Paste.gg: https://paste.gg/p/anonymous/a7dfa8623cfa4b9c99fb01905d35e999
File.io: https://file.io/rMUU2NnQV5mw
Is it reproducible with custom plugins disabled:
I disabled all of them but I still have the issue.
Please report issue on YouTrack: https://youtrack.jetbrains.com/issues/IDEA. It looks related to this meta issue: https://youtrack.jetbrains.com/issue/IDEA-165950
Did you solve this issue? Because I have a same problem, I am using Turkish Q keyboard but my physical keyboard is US. I cant do double quotes.
No, unfortunately I couldn’t. I got used to using single quotes or copying-pasting “ from the internet. Although if you want to type “ somewhere other than jetbrains ide’s you can use control+option+i on mac.
Edit: See the update below
control + i work perfect on mac but not work in jetbrains. it is problem for ide. i look not see shortcut key for control + i but still not working.
Update: I added a macro shortcut to control + option + i which types “. Works perfectly without any issues.
Thanks for the feedback. i used karabiner app for Mac
I was having the same problem on the most recent version of PyCharm 2022.1 (Professional edition) on Ubuntu 20.04
I have a US keyboard
My keyboard layout on Ubuntu is US international with dead-keys (in other languages shows as "US internatila with accent keys")
This means that in most applictions I type two keystrokes such as: [ " ] then [ o ] to produce ö or [ ' ] then [ e ] to produce é. However the first keystroke doesn't normally produce the double-quotes / quote unless I press [ SPACE ] right afterwards.
This is how it works in most applications, but NO SO on Pycharm. For somereason Pycharm is the only app that gets confused.
Ubuntu has an option to show the keyboard layout graphically an there I discovered the way to actually type " or ' on Pycharm!:
Alt Gr + ' (single-quote) => Types ' (single-quote)
Alt Gr + Shift + ' => Types " (double-quote)
Alt Gr + ` => Types ` (inverted quote)
Maybe this works on Turkish with accented keys layouts as well...
I was having the same problem but in Goland. I know this is a old thread, but for me it works using the "US, altgr with dead keys" layout on PopOS with gnome.
Had the same issue in manjaro linux rebooting did "fix" it.
System Settings -> Keyboard -> Input Sources -> Disable "Use smart quotes and dashes". Then you can use the key one below esc as double quotes.
I know this is an old issue. But I still wanted to share my workaround for CLion on a MacbookPro with US hardware keyboard configured as Turkish Q.
1. Switch to US keyboard so that you are able to type "/
2. Record a macro to type ". Name the macro something like ‘my_quote’.
3. Go to CLion Settings. Clone default MacOS Keymap so you can modify it.
4. Define a key combination for the macro my_quote. My key combination is Ctr+Alt+I (letter İ on Turkish Q keyboard so that it is " on the hardware keyboard).
Now, whenever you type Ctr+Alt+I, " appears. It creates either two quotes or one, depending on the position relative to the string, which is the intended behavior in the editor.
Hope this helps someone.