You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 20.04.4双窗口分屏操作失效,如何实现VS Code与Chrome同步分屏?

Fixing Window Snapping Issues on Ubuntu 20.04.4

Hey there! Let's get that window snapping working so you can code in VS Code and preview your Chrome changes side-by-side. Here are some practical steps to troubleshoot the problem:

  • Check if window snapping is enabled
    Open your system settings (press the Super key and search for "Settings"), navigate to Devices > Displays, and make sure the "Enable window snapping" option is checked. If it was disabled, turning it on should make your Ctrl+Super+←/→ shortcuts work immediately.

  • Verify your keyboard shortcut settings
    Head to Settings > Keyboard Shortcuts, scroll down to the "Windows" section, and look for "Snap window to left" and "Snap window to right". Confirm that the assigned shortcuts match the ones you're using (Ctrl+Super+← and Ctrl+Super+→). If they've been changed accidentally, click the shortcut field and reassign your preferred combination.

  • Try mouse-based window snapping
    If shortcuts aren't cooperating, use the mouse method as a workaround: hold the title bar of your VS Code window, drag it to the left edge of your screen—you'll see a highlight covering half the screen. Release the mouse, and VS Code will lock into that half. Repeat the same for Chrome on the right edge.

  • Rule out shortcut conflicts
    Some third-party apps or custom tools might be hijacking your Ctrl+Super shortcuts. Try closing all non-essential background apps (like terminal customizers, productivity tools, etc.) and test the snapping shortcuts again. If it works, you'll need to adjust the conflicting app's shortcut settings.

  • Reset GNOME settings (for default desktop)
    If none of the above works, a GNOME settings reset might fix underlying configuration glitches. Open a terminal and run:

    dconf reset -f /org/gnome/
    

    This will reset all your GNOME customizations (like desktop layout, shortcuts, etc.), so make sure to note any important settings before proceeding. Reboot your system after running the command.

  • Update your system
    Outdated packages can sometimes cause functionality bugs. Open a terminal and run these commands to install all available updates:

    sudo apt update
    sudo apt upgrade -y
    

    Reboot once the updates finish, then test the snapping feature again.

内容的提问来源于stack exchange,提问作者Emma Donery

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 20:02:52