javaintellij-idea

I can't type quote marks in IntelliJ


When typing normally on Ubuntu I can use ' and " normally, but when I type in IntelliJ it doesn't recognize these keys. How can I solve this?


Solution

  • happened to me before,
    starting from more reasonable to the least desired option...


    1. Check Your Keyboard Layout

    Fix:


    If you don’t want to change the layout but need an immediate fix, press:

    2. Disable Smart Quotes in IntelliJ

    3. Check Keymap Settings

    4. Check Plugins & Extensions

    5. Disable Dead Keys in Terminal

    Run this command to set a keyboard layout without dead keys:

    bash
    

    CopyEdit

    setxkbmap -layout us

    If this works, make it permanent by editing your input settings:

    1. Open a terminal and type:

      bash
      

      CopyEdit

      sudo nano /etc/default/keyboard

    2. Find the line:

      ini
      

      CopyEdit

      XKBOPTIONS="grp:alt_shift_toggle"

    3. Change it to:

      ini
      

      CopyEdit

      XKBOPTIONS="''"

    4. Save (Ctrl + X, then Y, then Enter) and reboot.

    6. Restart IntelliJ or Reinstall