I have a rather strange question. when i am using \begin{bmatrix} it does not automatically come up with \end{bmatrix} as i have to type this manually. I am completely aware of how to use this command. Its just that it would save some time if \end{bmatrix} generates automatically when i open \begin{bmatrix}. Thanks for any help. I am using overleaf by the way.
\usepackage{amsmath,amssymb,amstext}
\begin{align}
A^ = A-BK &= \begin{bmatrix} -a_2 - b_2k_1 &1 - b_2k_2 &-b_2k_3\ - a_1 - b_1k_1 &-b_1k_2 &1 - b_1k_3 \ - a_0 - k_1 &-k_2 &-k_3 \end{bmatrix}\ &= \begin{bmatrix} 0 &0 &1\0 &1 &0\ -1 &-3 &-3 \end{bmatrix}
\end{align*}

bmatrix. However, some editors offers functionality to auto complete environments. For example. when you start to write\begin{bmatrix}it immediately add\end{matrix}and space between them, where you fill/write content of your matrix. This functionality has nothing to do with LaTeX. It require, that any environment had to be open (by\bagin{...}) and closed (by\end{...}). – Zarko Nov 22 '20 at 00:34