Configure TeXStudio -> Preview -> Display Mode -> Show in embedded viewer and I've popped out the viewer to a separate window so I can place it on a separate screen. This seems like a good setup to me. Except any time the preview auto updates the preview window receives focus preventing further typing before toggling the focus back to the editor. Is there a way to prevent this?
Edit this is a bit more complex as one looks deeper
You are having an issue because TeXstudio's default presumption is that the windowed viewer needs to be focused to maintain synchronization, you may on occasion actually see it call synctex. You could stop the viewer synchronization in several ways to remove the focusing.
1) Apart from "INLINE" previews You could switch to the preview panel at the bottom but I have to presume you found that it was too limited?
2)Tried several viewer settings but with little or no success, removing sync in window returned it to embedded. The simplest workaround was to add an adjoining hotkey
To Inverse sync back (refocus editor) instantly add an alternative shortcut like ALt+O (just left of the Alt+P :-)
It needs to be added to the VIEWER MENUS PDF-VIEWER > WINDOW > FOCUS EDITOR Configuration as an Alternative see here
Thus my work-around suggestion is to
Hold down Alt then use P (to Preview) + O (for Onwards)
You should go to Options > Configure TeXstudio:
The first option should be "build and view" (default to F5), you can change its behaviour clicking on the configure icon on the right:
alternative: just "compile" with F6 (multiple times if needed).
Note: this will also not "jump" to your current cursor location, useful when you're changing the preamble and testing something deeper in the document, where "compile & view" would jump to the title page every time. If you still want to jump to the current location in the document after compiling with "F6", you can press "F7".