It seems to me the easiest way of doing this is by creating a seperate .bib file, for example you can open a new window in your editor, paste your code
@article{JoeDoe2012,
Author = {Joe Doe},
Year = {2012},
Title = {My article's title},
Journal = {My journal's title},
Editor = {Ben Editor},
URL = {http://webpage.com},
}
and save as for example jobname.bib
(I wouldn't use backslashes in the filename, this can lead to problems when refering to it in your .tex file) in the same folder as your .tex file is in.
You said
I have no clue what \addbibresource
command is
This becomes apparent in the following example file, where it is used to include the bibliography that you enclosed using \begin{filecontents}...\end{filecontents}
:
\documentclass{article}
\usepackage[backend=bibtex,style=numeric]{biblatex}
\addbibresource{jobname.bib}
\begin{document}
This statement has a checkable source \cite{JoeDoe2012}.
\printbibliography
\end{document}
The backend=bibtex
argument is used to tell biblatex to use bibtex (you could also use biber, which is often preferred) and style=numeric
is used to number the citations. The argument \printbibliography
simply prints the bibliography at that position.
It might (dependent on which editor you use) be necessary to run pdfLaTeX->BibTeX->pdfLaTeX->pdfLaTeX. If you don't see any updates, it might be useful to delete all output files (.aux, .bbl, etc) before recompiling.
There are two green arrows. The left one (double arrow) is to build and view. The right one (single arrow) is to view the output.
Note that it will depend what is your default builder.
If you want to use an specific you can press the corresponding shortcut.
On Tools > Commands
menu you can see them
as below:
You can set up the Build function here
Best Answer
I don't know if this is still relevant, but in the latest version of TeXstudio, namely v2.12.6, you can compile the index under
>Tools>Index
.