vscode/close-editor

Close Editor

Close the active editor tab

vscode
shortcuts
editor

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