

It does what you think: every time you invoke it, it changes what the Build command does after compilation. Yet, the previous paragraph gives a few reasons why this shouldn’t be hard-wired.Įnter the Toggle Focus command (bound to Shift+Win+F on Windows and Ctrl+Cmd+F on OSX).

In such cases, it would be nice if LaTeXTools could automatically bring up the viewer after compiling. That said, it is sometimes convenient to switch to the PDF output, especially if you are using a small screen and running both ST2 and your viewer in full-screen mode. I also have friends and coauthors who simply don’t need to look at the PDF output all that often–they can read LaTeX easily, and would much rather not be distracted by the viewer window popping up. The other scenario is when you are making many small changes to the file sequentially you compile to make sure that there are no errors or warnings, but do not need to check the PDF output every time.

It would be quite annoying if the viewer window was brought to the foreground in this case: in order to continue editing, you would have to manually switch back to ST2 (using Alt-Tab or Cmd-Tab, depending on your platform). First, if you have a large screen (or two monitors), you can keep ST2 and your PDF viewer side by side, and just glance at the output to see that all is OK. Switching to the PDF viewer after compilingīy default, LaTeXTools keeps the focus on the Sublime Text 2 (ST2) window after compiling a TeX source file to PDF. I hope they will make your TeX life more comfortable.Īs usual, you will get the updated plugin automatically if you installed LaTeXTools using Package Control, which, as I noted earlier, I strongly encourage you to do. I have recently added two simple but hopefully useful features to the LaTeXTools plugin.
