Search code examples
formatphpstormautoformat

PhpStorm: Auto Format adds Ø


This is very hard to google, because when I search for the character Ø I get a lot of results but on the page itself when I CTRL+F for the character Ø, all o's are marked as well...

Anyway, my problem: whenever I auto format in PhpStorm by pressing CTRL+ALT+SHIFT+L, the auto format works but also the character Ø is added to the file with the focus.

I had this problem on my laptop every now and then, but I seem to have it constantly on my private PC.

My keyboard is QWERTY - United States International. Region settings are Netherlands, language is English (United Kingdom). I believe this is the same on my laptop from work.

Is there a way to suppress the Ø character from being written when I use the CTRL+ALT+SHIFT+L to auto-format my files?


Solution

  • It's apparently a known issue reported as Shortcuts with CTRL + Left ALT offten launches bind shortcut and then inserts national letter but there doesn't seem to be much movement around the ticket.

    If you ask for my opinion, I have the impression that the underlying Java libraries on which JetBrains products are built do not make a clear distinction between AltGrand Ctrl+Alt. In US-International keyboard layout AltGr+L prints Ø.