I am writing an article in TeXstudio and want to include an index that contains (many) selected keywords that have already been written. To do so, I use the imakeidx package. Is there a possibility to define a shortcut or a keyboard hotkey such that I can go through my document, mark the respective keyword and press the shortkey instead of copying \index{keyword} several times? In the optimal case, it just works like the italics command Ctrl+I that can also be put around selected words afterwards.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{imakeidx}
\makeindex
\begin{document}
\section{Introduction}
In this example several keywords\index{keywords} will be used
which are important and deserve to appear in the Index\index{Index}.
Terms like generate\index{generate} and some\index{others} will
also show up.
\printindex
\end{document}