Editor displaying - not =

Answered

For some reason this morning the edit is not showing = when pressing the = key. A - is displayed. When using any other program (like this) the = is displayed. I am on Windows 10 using English with US keyboard and I am not aware of changing anything.

0
6 comments

Please provide a screenshot with your font settings:

Does it show = properly if it's typed in some other editor and then this file is open in IntelliJ IDEA?

0

 

I created a file in Notepad then opened in IJ and equals did display correctly. Also I can type an = into this .txt file. If I go back to the .java no equals. But I did just type println("===") in the .java file and = displayed correctly. 

0

Please change the font from Monospaced to something else, like Fira Code or Source Code Pro, or Consolas.

Also make sure IntelliJ IDEA run under JetBrains Runtime, see https://intellij-support.jetbrains.com/hc/articles/206544879.

1

I did just experiment with changing Primary font to Source Code Pro and = is displayed correctly. Must be something in the Monospaced font.

0

Monospaced is not a font, it's a logical font name that maps to some system font by the JDK rules depending on the OS and locale. For some reason it maps to a broken font on your specific system.

1

Thanks for your help

0

Please sign in to leave a comment.