Here's how I use workspaces (I am on KDE by the way):
I have 1 workspace dedicated to programming. It has all the terminals, the code editor, and everything else.
The 2nd workspace is for browsing. Incidentally this also includes web app preview (if I am working on a web app).
I have mapped the Ctrl + ` for easy switching between the 2. So I make a change in the editor, press a key and see the preview. Nice and easy. My code editor is never minimized or in the background so all good.
I have to do all this when I am working on a small laptop screen where switching between windows is too annoying. I am aware that there are other ways to accomplish somewhat the same functionality but workspaces work for me.