Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Re-open last closed tab (undo tab close)

In VS Code, if I accidentally close a tab, how do I reopen it? Like how in most browsers, I can press Cmd+Shift+T to undo closing a tab.

like image 687
Jo Liss Avatar asked Sep 19 '25 11:09

Jo Liss


1 Answers

Press Cmd+Shift+T (on Mac) or Ctrl+Shift+T (on Windows/Linux) to re-open the last closed tab. This will trigger the workbench.action.reopenClosedEditor command.

like image 153
Jo Liss Avatar answered Sep 21 '25 04:09

Jo Liss