Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vscode Window stucked when remote desk to windows system and open second vscode to edit something

Working environment:
Operating system: windows 10 10.0.19045.2604 x64 simplified Chinese version
VS Code version: update to the latest

Steps where the problem arises:

  1. Use this computer normally (assuming it is called A) to open the first VS Code window for normal coding
  2. Wait for a while(maybe half a day or a day?)
  3. Use another computer (let’s call it B) to remote computer A, the remote tool used here is mstsc.exe
  4. Continue to use computer B to remote computer A, and open the second VS Code window. At this time, when editing files, searching content, creating new files, etc., as long as you press the keyboard, the window will be stuck. The VS Code window had to be minimized then maximized to get back to normal, but none of the keyboard input worked.

Temporary workaround: Continue to operate on the remote computer,

  1. Close all VS Code windows
  2. Reopen the VS Code window
  3. On the remote computer, VS Code can be used normally for editing.

What I expect from an answer post: Solve the problem that the window of VS Code using the keyboard is stuck when the windows is connected remotely. Don't rely on the anti-human design of closing all VS Code windows to solve this problem.

like image 695
wf751620780 Avatar asked Oct 25 '25 14:10

wf751620780


1 Answers

In fact, this is a legacy bug in the system caused by the loss of focus during scaling when connecting with mstsc. No one has fixed it, and this bug has been inherited by Windows 11.

Temporary solution: Press Win to make VSCode lose focus to get out of the stuck state.

Ultimate solution: Use a third-party input method (perfectly resolves the issue).

I hope it can help you.

like image 79
user10978087 Avatar answered Oct 27 '25 05:10

user10978087



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!