Maximize window shortcut

What is the keyboard shortcut to maximize a window on OSX? I'd like to know the shortcut that is equivalent to double clicking on the window title. I do not want to make the window full screen.


Solution 1:

One of the default settings in System Preferences > Dock is [√] Double-click a window's title bar to zoom; however by default, e.g., Finder does not have a keyboard shortcut to zoom a window.

One may add a keyboard shortcut for the Finder > Window > Zoom command in System Preferences > Keyboard > Shortcuts > App Shortcuts, as shown in the image below.

Note that one can also choose All Application and use the following as the menu title,
e.g. Window->Zoom so as not to confuse it with another Zoom command elsewhere in its menu system if applicable.

Have a look at: Create keyboard shortcuts for apps on Mac

Click the [+] and fill in the sheet, then click the Add button:

enter image description here

Solution 2:

The previous answers do work, of course. The problem is that sometimes maximizing the window isn't the same as having the window full-sized on your desktop.

There is an app on the Mac App Store called "Magnet" (https://apps.apple.com/at/app/magnet/id441258766?mt=12) which does this job perfectly and you can even customize the shortcuts.