[Tex/LaTex] Inserting text automatically with macros in Kile

macros

In WinEdt you can insert text automatically with internal programmable macros.
You can do this in Kile or other frontend editor? Can be direct in file.tex via shell or bash on Ubuntu.
I need insert:

\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[brazil]{babel}
\usepackage{amssymb,amsfonts,indentfirst}
\usepackage[centertags]{amsmath}
\usepackage[normalem]{ulem}
\usepackage{enumerate,multicol,subfig}
\usepackage{tikz}
  \usetikzlibrary{calc,positioning}
\everymath{\displaystyle}
\graphicspath{{figuras/}}

\begin{document}

\end{document}

Best Answer

Since you want to insert what looks like a complete document, you should use a template as described in the online documentation which provides the instructions below. Once you have a template you can select that when you start a new document.

The easiest way to create a new template is to start the wizard, and then add commands in the editor. Once you have your document set up the way you like:

Save your file;

Go to File;

Choose Create Template from Document;

Make any corrections necessary to the template;

Enter a name for your new template;

Click OK to add your template to the menu.