Xindy is an efficient indexing tool, it is an external perl-based application that ships readily with TexLive distribution but not with MikTeX, for the latter one you need to install it manually, this thread can be of help. For configuration of xindy in TexStudio editor, I had success with imakeidx package and texindy filter using XeLaTeX compilation, here is the thread for that. However, when it comes to the nice glossaries package to create glossaries/acronyms/etc, things are getting more complicated. I want to pass the xindy option of glossaries package and configure TexStudio to use makeglossaries for the xindy tool, making use of shortcut keys. I found that both makeglossaries and texindy are listed among commands in this editor, but still how to set all of these things in TexStudio to compile the PDF file with glossary lists is still a puzzle for me. Making glossaries out the command line is not an elegant way to get the job done, while such automation can be configured into the nice TexStudio editor.
In the below MWE, I could only compile PDF but with not glossaries list, I wonder how to do that using the TexStudio editor and not from the command line?
This is a MWE:
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[xindy]{glossaries}
\makeglossaries
\newglossaryentry{def1}{name={first definition},description={description1}}
\newglossaryentry{def2}{name={second definition},description={description2}}
\begin{document}
This is \gls{def1} and this is \gls{def2}.
\printglossaries
\end{document}
Result:

Update with arara:
Configuration of TexStudio in Windows:

% arara: xelatex
% arara: makeglossaries
% arara: xelatex
% arara: xelatex
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[xindy]{glossaries}
\makeglossaries
\newglossaryentry{def1}{name={first definition},description={description1}}
\newglossaryentry{def2}{name={second definition},description={description2}}
\begin{document}
This is \gls{def1} and this is \gls{def2}.
\clearpage
\printglossaries
\end{document}
Now the big araric moment just press ALT+SHIFT+F? (this is in windows and it can be F1, or F2, it depends):
Result:


The setup is:
arara, and I found that Alt+Shift+F2 has already been assigned after passing arara into TexStudio. – doctorate Jun 13 '13 at 06:30xelatex:% arara: xelatex. – Marco Daniel Jun 13 '13 at 08:09-v) in TeXstudio on Windows 10, when there is an error (for example an undefined control sequence) Texstudio blocks and the process remains hanging even if you push the red stop button (you have to kill it with Task Manager). With the log option (-l) only:arara -l % | txs:///view | txs:///view-logit works like a charm! – CarLaTeX Nov 08 '16 at 22:06