How can I configure the Ubuntu Dock to show windows only from the current workspace?

I would like my Dock to show only the windows of the current workspace. Especially in the little preview window. I find it very confusing to jump around workspaces when trying to find the right window.


Solution 1:

Open Terminal and run

gsettings set org.gnome.shell.extensions.dash-to-dock isolate-workspaces true

Solution 2:

You may use the 'Workspace Isolated Dash' GNOME extension.

Here you can see more information about this extension, and also install it: https://extensions.gnome.org/extension/887/workspace-isolated-dash/