How to delete recent opened file session on Visual Studio Code?
I opened few files during coding (both files in project and out project). After that, I close few in its (by ctrl+w
and click the 'x' button).
When type ctrl+tab
, I always see all opened files.
I try to restart VSCode, restart Windows but nothing change.
How do I close unnecessary files?
I use VS Code 1.0 + Windows 10.
Edit: This feature added in new versions
If you want to clear a specific item (not the whole list) from the recently opened list you have to
- Press
Ctrl + SHIFT + P
- Type
Remove From History
(in earlier version it isRemove From Editor History
) and press Enter - 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:
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
For latest Visual Studio Code (1.54.2):
- View-Command Palette or Ctrl + Shift + P
- in the Command Palette dialog box:
File: Clear Recently Opened
- Restart Visual Studio Code