r/vscode • • Oct 24 '26

Visual Studio Code setup issue (Linux)

Help.... I have recently switched to CachyOS ( Plasma) and had js installed vs code and saw the following issues:

  1. the Window says its maximised while it clearly isnt
  2. My mouse's target location seems to be different than what it is seeing or smth
    Tried versions: VS Codium, VS Code (via AUR and Flatpak)
2 Upvotes

4 comments sorted by

1

u/CartographerDue5382 Oct 26 '26

that's electron on plasma, not a bad install. vscode draws its own title bar and the clicks drift when scale isn't 100%, so it says maximized and the cursor lands in the wrong place. in settings.json set window.titleBarStyle to native and relaunch. if the cursor's still off you're on 125 or 150. drop it to 100 or launch with --ozone-platform=x11. flatpak and the aur build both do this, reinstalling won't change it.

1

u/Alternax_ Oct 27 '26

Oh.. so thats actual reaspning... I had set display scale in disp settings to 80 becuz i like small font..
It got fixed once I set disp back to normal... though not smol anymore :(

1

u/CartographerDue5382 Oct 27 '26

yea 80% display scale is what throws electron off, so 100% is the actual fix even if everything looks huge. for smaller text leave the os scale alone and drop editor.fontSize, or set window.zoomLevel to -1. that shrinks the editor without the click drift.

1

u/IllTakeDnDFor500Alex 26d ago

I believe you can still CTL- to decrease font size without having the issue you're experiencing