I solve that with multiple desktops feature on macOS. You also get that on Linux and newer versions of Windows. I use either trackpad swipe or ctrl+[left/right] to navigate.
The important thing is to set the desktops to be static (disable the “smart” rearranging) and set the windows to always open in the same desktop.
This makes my experience on a 16” screen so great that I have a hard time adjusting to using two monitors.
I use VSCode very happily after using Gedit for many years, and it's just the layout I'm attached to, I suppose.