1

I've spent the better part of the last couple hours searching through StackExchange and Google to find either a WYSIWYG style LaTeX editor, and for Windows, I have settled with TexStudio as the best offline option (I'm used to using Overleaf.)

In any case, one thing that would be a HUGE quality-of-life improvement for me would be to compile and preview my file upon save (Ctrl+S). Unfortunately, if I try to make Ctrl+S the shortcut to Build and View, it removes it as the hotkey to save.

Is there any way to set a hotkey for more than one command? Or any other way to automatically preview my document when I save?

I am using the built-in PDF viewer in TeXStudio.

Thanks in advance.

  • 1
    What's wrong with TeXstudio default shortcuts? – Aradnix Jan 30 '18 at 5:37
  • 2
    Agreed with Aradnix. Furthermore, TeXstudio does save the file before Build&View, so it sort of does what you want anyway. F5 is even shorter than Ctrl+S. – gusbrs Jan 30 '18 at 10:41
  • It seems to me that the problem is not really TeXstudio's but the user's, that is, you need to leave the WYSIWYG approach aside to be able to work with TeXstudio, at least in the traditional way. Fortunately TeXstudio supports synctex which is quite useful for both the come and go from code to PDF and vice versa. However, if you're not willing to take that step, you might as well use LyX. – Aradnix Jan 30 '18 at 15:37
  • set a hotkey for more than one command is the same as use \label{} twice to refer two different equations!!! Just use the hot key for Build&View as mentioned before. Note that what will happen in Build&View you can configure in Options Menu. – Sigur Feb 20 '18 at 14:34
2

You can use TeXstudio's default shortcut for "Build & View", which is F5. Once TeXstudio already saves the file before "Build & View" it does both things you are trying to achieve with a single keystroke.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.