; Close current desktop (moves windows to previous) #c::VirtualDesktop.RemoveCurrentDesktop()
# Create new desktop and move current window to it $new = New-Desktop Move-Window -Window (Get-ActiveWindow) -Destination $new Switch-Desktop $new Bind this to Win+Shift+N via your launcher (e.g., AutoHotkey or PowerToys Run). For most users : Install AutoHotkey + VirtualDesktop.ahk – it’s free, open-source, and gives you macOS-like virtual desktop control. windows virtual desktop helper
# Requires: Run PowerShell as Admin once: Install-Module -Name VirtualDesktop Import-Module VirtualDesktop function Switch-ToDesktopNumber($num) Switch-Desktop ; Close current desktop (moves windows to previous)
; Close current desktop (moves windows to previous) #c::VirtualDesktop.RemoveCurrentDesktop()
# Create new desktop and move current window to it $new = New-Desktop Move-Window -Window (Get-ActiveWindow) -Destination $new Switch-Desktop $new Bind this to Win+Shift+N via your launcher (e.g., AutoHotkey or PowerToys Run). For most users : Install AutoHotkey + VirtualDesktop.ahk – it’s free, open-source, and gives you macOS-like virtual desktop control.
# Requires: Run PowerShell as Admin once: Install-Module -Name VirtualDesktop Import-Module VirtualDesktop function Switch-ToDesktopNumber($num) Switch-Desktop