How do I display two windows as split screen? [duplicate]

I have two open programs, but I want to view both of them at the same time. Dragging and adjusting them manually takes time, and I might have to do this every day. Is there any shortcut for doing this in Ubuntu?

I'm thinking something like this:

Screenshot showing two windows side-by-side


Solution 1:

To set a window occupying the left half of the screen use this shortcut:

Ctrl + Super +

For the right half:

Ctrl + Super +

Solution 2:

You can also just drag the window all the way to the left or right edge of the screen, it will show an animation that highlights the new dimension and then just release it.