Reputation: 1363
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.
Upvotes: 77
Views: 60723
Reputation: 83
just click "more" in below the recent list in the welcome page. Then click "x" in the list. Refer to this image
Upvotes: 6
Reputation: 467
To clear recently opened sessions in VS code, please do the following:
Ctrl + Shift + P(on Windows)
or Cmd + shift + P(on MAC)
Clear Recently Opened
Hope this helps. Happy coding!
Upvotes: 3
Reputation: 890
I have just found a workaround which seems to remove a single directory from recents, in case you do not wish to remove all of them.
File: Open Recent...
x
appearingx
and you're all doneUpvotes: 13
Reputation: 159
For latest Visual Studio Code (1.54.2):
File: Clear Recently Opened
Upvotes: 1
Reputation: 2495
If you want to clear a specific item (not the whole list) from the recently opened list you have to
Ctrl + SHIFT + P
Remove From History
(in earlier version it is Remove From Editor History
) and press EnterSource: 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:
Upvotes: 82
Reputation: 8350
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:
>Clear Recently Opened
Upvotes: 80