Surround people
The shortcut key is m, and the unit will move around your target. But in actual combat, you need to master the position of your opponent and exercise regularly.
Melee in front, remote in the back, is the button at the bottom of the right column of the mini-map, "keep formation". I forgot the shortcut key. Just make the icon into a triangle