Open the Registry Editor and copy and paste the following path into the top address bar: HKEY _ Current _ User \ Control Panel \ Desktop \ Window Metrics.
Double-click IconSpacing (horizontal direction) and conVerticalSpacing (vertical direction) on the right, set them to the required values, click OK to save the settings, and then shut down or restart the computer.