Command
Ctrl + W (Windows/Linux) | Cmd + W (Mac)Explanation
Closes the current editor without exiting VS Code.
Examples
Close tab on Windows/Linux
Ctrl + WClose tab on macOS
Cmd + WCtrl + W (Windows/Linux) | Cmd + W (Mac)Closes the current editor without exiting VS Code.
Close tab on Windows/Linux
Ctrl + WClose tab on macOS
Cmd + W