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