If you use Vlide it will do bracket checking, I use Notepad++ it has a bracket check function also.
just a comment I have 3 make layouts from rectangle, pick a point, walk along pline, horizontal aligned, the make layouts part supports rotated rectangle. Happy to discuss more.