# TeXstudio Macro Creation Problem with Spacing

I have been trying to create the following macro in TeXStudio(seen in the picture below):

\begin{align*}
%|
\end{align*}


but when I activate it in my tex file I get this:

\begin{align*}
(cursor here)
\end{align*}


with no tab before the cursor. How can I create the macro to include the tab before the cursor. Also, are there any in depth articles/tutorials regarding macros in TeXstudio?

%SCRIPT