How to compile bibtex with TeXstudio?

Coming from TeXworks, I found this frustrating because I was used to being able to compile LaTeX and BibTeX all in one go. You can do this in TeXstudio, as well. If you select Options> Configure TeXstudio..., and select Build from the lefthand menu, you'll see a screen (below) that explains the default commands that are run for the various menu buttons and/or keyboard shortcuts. Now you might need to tick the box next to Show Advanced Options and then not untick it because it seems like there is a bug at least in version 2.10.8 of TeXstudio on Ubuntu 16.04. If you modify the Default Compiler option (by clicking the wrench button to the right of the text box), you'll be able to enter a series of commands to run when you compile. The screenshot below, for example, shows how to set this up to run pdflatex, bibtex, pdflatex, pdflatex in order to resolve all cross-references.

Edit by geras: I suppose you could now also turn off the Repeat contained compilation commands button to save some time on compilation but I am not sure about it because I am a newbie.

enter image description here


See here, Tools Menu

enter image description here

You can change the shortcut using the Options/Configure TeXstudio...

I'm using F10 but the default is F11.

enter image description here


For those who doesn't have the GUI "wrench" edit option to edit the text-boxes, you can write:

txs:///pdflatex | txs:///bibtex | txs:///pdflatex | txs:///pdflatex | txs:///view-pdf