Dane Balia
Dane Balia

Reputation: 5367

Close Working File on Mac?

What is the keyboard shortcut for closing a working file in VS Code on a Mac?

When I issue the default CMD + W, it sometimes closes the entire IDE, or alternatively blanks the screen, but the file is still in the "Working Files" list.

Upvotes: 1

Views: 541

Answers (1)

Benjamin Pasero
Benjamin Pasero

Reputation: 123934

If you press Cmd+W (or Ctrl+W on Windows) you are actually closing the editor area. If you have more than one editor area open, you can reduce the number of areas until all are closed. Pressing it again in that state will close the window.

Beginning with version 0.5.0 we added new commands that you can use to close a working file or all working files. The keybinding is be Cmd+K W or Ctrl+K W on Windows.

Upvotes: 3

Related Questions