dota 2 space to center hero code example
Example: dota 2 space to center hero
bind SPACE "+spacecenter"
Go into your settings, On the Hotkeys tab in the far left column find the option called "Select Hero" and bind this to your spacebar. Whenever you need to center your hero double tap the spacebar, if you want the camera to follow your hero double tap the spacebar and hold it.