How to open the current file in Windows Terminal from vs code (WSL) - Stack Overflow

admin2025-04-18  6

I have vs code running and a workspace open, using a keyboard shortcut I would like to be able to open the current file in windows terminal (external). This should also work when the workspace is in WSL.
Based on my research this seems impossible, which would surprise me though.

I have vs code running and a workspace open, using a keyboard shortcut I would like to be able to open the current file in windows terminal (external). This should also work when the workspace is in WSL.
Based on my research this seems impossible, which would surprise me though.

Share Improve this question asked Jan 30 at 2:12 TeiemTeiem 1,64920 silver badges45 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

It seems you are facing the same issue as https://github.com/Microsoft/vscode-remote-release/issues/7704. The command (via Command Palette) does work, but not the shortcut.

Based on one of the comments provided, Without WSL, the focus needs to be in the explorer, but with WSL the focus needs to be in the editor. This is a bit confusing.

The issue is still open in VS Code, so the error still occurs. In the meantime, you may upvote the issue, to improve the visibility to the team, and choose a different shortcut.

转载请注明原文地址:http://anycun.com/QandA/1744941530a89795.html