# Hanging in the front end

I'm writing some code and it's getting quite long, and I seem to get a lot of hanging in the front end when I'm trying to move the cursor to certain places with the mouse. I'm starting to think that there is a pattern to the places where I put the cursor that cause it to hang, but I don't know what the pattern is yet. I also get this message the pops up periodically, roughly every few hours while I'm working. I can't work out how it's related to what I'm doing at the time.

The string '"]' cannot be displayed with ShowStringCharacters->False due to an error in the string.


Sometimes I get the same message with '"}' instead of '"]', and sometimes I get "".

There was one point when my code seemed to get corrupted and some cells looked like a whole bunch of horrible box expressions. I copied the obviously corrupted parts from an old backup but maybe I missed something. I've tried running the following, but it doesn't seem to fix the problem

Needs["AuthorTools"]
NotebookRestore[]


I'm happy to provide the notebook if it's helpful

SetOptions[$FrontEndSession, CodeAssistOptions -> {"FloatingElementEnable" -> False}]  Code assist pops up defintions of functions upon hover-over. If the package setup is convoluted the pop-ups can take a long time resulting on "Not Responding" messages. If this solution works you can make it permanent by changing $FrontEndSession to \$FrontEnd`. This option can also be found via the Option Inspector > Editing Options > Private Editing Options > CodeAssistOptions.