I like editing my Script AddIns in VS code. I would like to do that with buttons too, without the hassle of copy-pasting from vs code to the button dialog. I found a button folder but it seemed to be pre-defined buttons. I didn't see my custom buttons.
Where or the button codes stored? if they are user-editable.
Script Add-Ins are text files that you can edit in anything.
But most toolbar buttons are self-contained, and stored inside XML config files that it would not make sense to edit directly (outside of doing very specific things). Use the built-in editor for those.
Most buttons are also very simple, and just a few lines, if even more than one. For complex scripts, turning them into a Script Add-In can make things easier, and those can add commands which buttons can use to invoke parts of the script.