I have Virtual-Box VM where Debian Linux 11.11 is installed with Visual Code 1.99.3
I use MobaXterm v24.4 Personal Edition to login via ssh to the machine. If i start code, then the window displayed via the X11 server cannot be resized or moved on the desktop. Maximizing or minimizing the window works fine.
With an older versions of Visual Code 1.97.2 it works fine.
Has anybody an idea how to solve this problem ?
If i start code directly in the VM window, then moving and resizing the window works fine, but the position all windows of visual code are limited to the VM window. So using several monitors does not work well.
I have also made a test with cygwin. There i have the same problem with moving and resizing the window
Install cygwin with x server as sdescribed by https://darrengoossens.wordpress.com/2023/02/17/minimal-cygwin-install-to-use-as-an-x-server/
Start the xwin server command box at windows 11 with
C:\cygwin64\bin\run.exe --quote /usr/bin/bash.exe -l -c "cd; exec /usr/bin/startxwin -- -listen tcp -nowgl"Start cygwin
connect to the vm
export DISPLAY=":0.0"ssh -X <username>@<IP-Address>start code
code .
-
1related?: github.com/microsoft/vscode/issues/65232starball– starball ♦2025年08月01日 16:22:28 +00:00Commented Aug 1, 2025 at 16:22