I'm using TeXstudio 2.12.6 for mac. The shortcuts for macros can be customized in Preference, but these shortcuts seem to be bound to the positions of the macros in the list, rather than the names of the macros. So, for example, if there're two macros A,B at the beginning, with shortcuts a,b, and I add another macro C between A and B, then the shortcut b would be bound to C, rather than B. How can I prevent this automatic change of shortcuts when macros are added or removed?
Converting my comment into a community wiki answer, and kindly request to be informed to delete this answer in the future should the feature request be fulfilled by the TXS core developers.
This is a known issue since 2014, and is currently in the feature request list. The desired functionality is not available as an option currently as far as I can tell.