Easy steps to install latexindent package on Mac
Package Information:
Application Name – latexindent
What is latexindent – Not Available for latexindent
Use of latexindent – Add indentation to LaTeX files
URL – https://ctan.org/pkg/latexindent
Installation Steps:
- Open Terminal using Spotlight search by pressing
<command+space>. Type terminal and hitEnterkey. - Now, run following command to install homebrew (brew)
- Install latexindent using brew
brew install latexindent

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null

latexindent is ready to use now!