I had this problem too. I opened preferences and changed one totally unrelated option ("Code editor -> display -> Show visible right margin") and clicked OK and then it went back to normal.
So just change anything in preferences.