Close tab: the shortcut in 19 apps
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.
| App | Mac | Windows | Linux | Chromebook |
|---|---|---|---|---|
| Chrome DevToolsClose the file tab · Sources panel | OptionW | AltW | AltW | — |
| ChromeOSClose the current tab | — | — | — | CtrlW |
| CursorClose the editor | CmdW | CtrlW | CtrlW | — |
| EclipseClose the editor | CmdW | CtrlW | CtrlW | — |
| EmacsClose (kill) a buffer | CtrlX,K | CtrlX,K | CtrlX,K | — |
| ChromeClose the current tab | CmdW | CtrlWorCtrlF4 | CtrlWorCtrlF4 | — |
| IntelliJClose the editor tab | CmdW | CtrlF4 | CtrlF4 | — |
| JupyterLabClose the tab | OptionW | AltW | AltW | — |
| EdgeClose the current tab | — | CtrlWorCtrlF4 | — | — |
| Visual StudioClose the document | — | CtrlF4 | — | — |
| FirefoxClose the current tab | CmdW | CtrlW | CtrlW | — |
| ObsidianClose the current tab | CmdW | CtrlW | CtrlW | — |
| Sublime TextClose the file | CmdW | CtrlW | CtrlW | — |
| UbuntuClose the tab or window · Files | — | — | CtrlW | — |
| UbuntuClose the terminal tab · Terminal | — | — | CtrlShiftW | — |
| VS CodeClose editor | CmdW | CtrlWorCtrlF4 | CtrlW | — |
| WarpClose the tab or pane | CmdW | — | — | — |
| 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 tab | CmdW | CtrlW | CtrlW | — |
| ZoomClose the current chat | — | CtrlW | — | — |
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
- Chrome DevTools (Sources panel).
- Ubuntu (Files).
- Ubuntu (Terminal).
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.