I recently noticed a screenshot showing spaces in the dock and thought it was a helpful way to provide some visual grouping to my apps. You can add both regular and small spacers to your dock, which look like this:
Note: My dock is on the left normally (the only correct choice 😏), but I rotated the screenshot so it wouldn’t take up as much vertical space.
1. Open Terminal.
Open your favorite Terminal application.
2. Choose spacer size.
You can add a regular spacer or a small spacer. Copy and paste one of the scripts into your Terminal.
Regular spacer script:
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
Small spacer script:
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'; killall Dock
3. Move the spacer(s).
Drag and drop the spacer(s) to the desired location on your dock.
Note: You can delete spacers like any other icon on your dock. Drag the icon off your dock to remove it from your dock or right-click and choose Remove from Dock.