Close File Shortcut In VS Code You can use Cmd (⌘) + w in VS Code to close the currently open file. Tweet