For years I’d have told you to install a third-party app to snap windows into place on a Mac. Since macOS Sequoia that’s built in, and the keyboard shortcuts are the part I find most useful, because dragging windows to the edge with a trackpad is fiddly.
The shortcuts all start with Fn (the Globe key) and Control. Add an arrow key and the active window jumps to that half of the screen:
Fn-Control-Left Arrow left half
Fn-Control-Right Arrow right half
Fn-Control-F fill the screen
Fn-Control-C centre the window
Fn-Control-R back to the previous size
The one I like most adds Shift. Fn-Control-Shift-Left Arrow puts the active window on the left and the window behind it on the right, so a browser and an editor sit side by side in one move. Up and Down Arrow do the same with top and bottom halves. Add Option as well (Fn-Control-Option-Shift-Left Arrow) and you get one window on the left with two more stacked in the right-hand corners.
An example: you have a terminal and the docs open. Click the terminal, press Fn-Control-Shift-Left Arrow, and the docs fill the right half. Fn-Control-R puts the terminal back where it was when you’re done.
A caveat on looks: by default tiled windows get a small gap around them. If you’d rather they touch the edges, turn off Tiled windows have margins under System Settings > Desktop & Dock, in the Windows section. Same place has the switches for dragging windows to the screen edges, in case those keep tiling things you only meant to move. And the quarter-screen corners have no shortcut of their own; for those you use the Window menu or the green button.
Further reading: Mac window tiling icons and keyboard shortcuts (Mac User Guide), Change window tiling settings on Mac (Mac User Guide)