Usually, I use many macros in my documents to save time. I am searching for clever "ideas, methods, tools" which can replace macros by its definition. For example, if we have a the following document
\documentclass[a4paper,10pt,english]{article}
\usepackage{amsfonts}
\newcommand{\bN}{\mathbb{N}}
\newcommand{\bZ}{\mathbb{Z}}
\begin{document}
$\bN$ and $\bZ$ are closed under the operation of addition
\end{document}
I want the content to be converted to
$\mathbb{N}$ and $\mathbb{Z}$ are closed under the operation of addition
Remark: I know that I can do this using find/replace in the editor. Here, I am asking about other possibilities.
Best regards