Best practice for handling CMD + W in Code Repository

I love the embedded VS Code experience in Code Repositories. Closing editor tabs suggests CMD + W as a way to close tabs, which, in a browser, closes the browser window. Does anyone have a best practice for how to use the shortcut, or do you suggest remapping it to something else? I’m hoping to make my web VS code experience and my real VS code experience seamless.

Thanks!

1 Like

Hey,

I’m happy to see your interest in VS Code!

It is a definitely an annoying limitation/safety measure of browsers to disallow overriding the CMD+W shortcut. You can overcome this limitation by installing VS Code as a PWA. To do that, you can follow the instructions in the public docs. These instructions are applicable to all VS Code Workspace types, not just React development.

I hope this is adequate to resolve your issue, but please do come back if you run into anything else!