How to delete recent opened file session on Visual Studio Code? How to delete recent opened file session on Visual Studio Code? windows windows

How to delete recent opened file session on Visual Studio Code?


If you want to clear a specific item (not the whole list) from the recently opened list you have to

  1. Press Ctrl + SHIFT + P
  2. Type Remove From History (in earlier version it is Remove From Editor History) and press Enter
  3. Choose/Find the file you want to clear

Source: link

Update 09.04.2020:

With the release of Visual Studio Code 1.44.0 you can easily remove a file using the UI. You see a closing x next to a file in this recently opened files view:

Remove a file from the recently opened files list


I could be mistaken but you don't want to delete, but "clear" recently opened files. If that is the case, then follow these steps in regards to VS Code version 1.15.0:

  • Press Ctrl + Shift + P
  • Then, within the Quick Open bar, type in >Clear Recently Opened
  • Press Enter, restart Visual Studio Code, and you should now see nothing under Recent.


Cmd + Shift + P
Clear Editor History