How To: Add Spaces to Dock in macOS

How To: Add Spaces to Dock in macOS

On macOS, the Dock application gives you a handy way of launching other applications that you use the most frequently with a single click. You can add, remove, click, and drag them around however you like to organize the Dock. But you can’t divide the apps using an easy way. Fortunately, there’s a little trick that can help you organize them better.

With two commands in Terminal, you can add spacers anywhere on the dock to separate the icons. Open Terminal and copy and paste this command:

defaults write persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'

Enter it as many times as you want spaces. Error on too many, they are easy to remove.  They won’t show up until you force restart the Dock with:

killall Dock

The dock will refresh with an added spacer can be dragged to any position. To remove them, just drag them up and out of the Dock like any other icon.