Dock is where you put the most used application to help you quickly open it. By default, the Dock always appears on the edges or at the bottom of the screen. What could you do to hide the Dock so you will have more space for running windows?
Hide the Dock in System Settings.
macOS has an option to automatically hide or show the Dock in System Preferences. Open System Preferences and choose Dock:
You will see the option “Automatically hide and show the Dock”. You check or uncheck this option to enable this option.
However, those who want to temporarily hide the Dock don’t want to repeat these steps every time. The solution:
Hide the Dock with a Keyboard Shortcut
Command + Option + D is the default hotkey to active or inactive Automatically hide and show the Dock option. Anytime you want the Dock slide away to get more screen space, press this keyboard shortcut.
In case you want to change the hotkey, access Keyboard from System Preferences:
In tab Shortcuts, Item Launchpad & Dock as shown in following image:
You can double click the current shortcut and press the new Keyboard Shortcut that you want to set.