Skip to content

↑↓ moveEnter openEsc close

Close tab: the shortcut in 19 apps

19 apps · Mac, Windows, Linux and Chromebook

On Mac it is usually Cmd+W (10 of 13 apps); on Windows it is usually Ctrl+W (11 of 17 apps); on Linux it is usually Ctrl+W (9 of 14 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinuxChromebook
Chrome DevToolsClose the file tab · Sources panelOptionWAltWAltW—
ChromeOSClose the current tab———CtrlW
CursorClose the editorCmdWCtrlWCtrlW—
EclipseClose the editorCmdWCtrlWCtrlW—
EmacsClose (kill) a bufferCtrlX,KCtrlX,KCtrlX,K—
ChromeClose the current tabCmdWCtrlWorCtrlF4CtrlWorCtrlF4—
IntelliJClose the editor tabCmdWCtrlF4CtrlF4—
JupyterLabClose the tabOptionWAltWAltW—
EdgeClose the current tab—CtrlWorCtrlF4——
Visual StudioClose the document—CtrlF4——
FirefoxClose the current tabCmdWCtrlWCtrlW—
ObsidianClose the current tabCmdWCtrlWCtrlW—
Sublime TextClose the fileCmdWCtrlWCtrlW—
UbuntuClose the tab or window · Files——CtrlW—
UbuntuClose the terminal tab · Terminal——CtrlShiftW—
VS CodeClose editorCmdWCtrlWorCtrlF4CtrlW—
WarpClose the tab or paneCmdW———
Windows 11Close the active document in apps that allow multiple open documents—CtrlF4——
Windows 11Close the active tab, or the window when only one tab is open—CtrlW——
ZedClose the tabCmdWCtrlWCtrlW—
ZoomClose the current chat—CtrlW——

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

How the apps compare

  • Mac: Cmd+W in Cursor, Eclipse, Chrome, IntelliJ, Firefox, Obsidian, Sublime Text, VS Code, Warp and Zed; Option+W in Chrome DevTools and JupyterLab; Ctrl+X K in Emacs. Zoom has no default Mac binding.
  • Windows: Ctrl+W in Cursor, Eclipse, Chrome, Edge, Firefox, Obsidian, Sublime Text, VS Code, Windows 11, Zed and Zoom; Ctrl+F4 in IntelliJ, Visual Studio and Windows 11; Alt+W in Chrome DevTools and JupyterLab; Ctrl+X K in Emacs.
  • Linux: Ctrl+W in Cursor, Eclipse, Chrome, Firefox, Obsidian, Sublime Text, Ubuntu, VS Code and Zed; Alt+W in Chrome DevTools and JupyterLab; Ctrl+X K in Emacs; Ctrl+F4 in IntelliJ; Ctrl+Shift+W in Ubuntu.
  • Chromebook: Ctrl+W in ChromeOS.

Where and when it works

Learn it by pressing it: Chrome DevTools shortcuts practice, ChromeOS shortcuts practice, Cursor shortcuts practice, Eclipse shortcuts practice, Emacs shortcuts practice, Chrome shortcuts practice, IntelliJ shortcuts practice, JupyterLab shortcuts practice, Edge shortcuts practice, Visual Studio shortcuts practice, Firefox shortcuts practice, Obsidian shortcuts practice, Sublime Text shortcuts practice, Ubuntu shortcuts practice, VS Code shortcuts practice, Warp shortcuts practice, Windows 11 shortcuts practice, Zed shortcuts practice or Zoom shortcuts practice.