Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 874
Frank Vu Avatar asked May 09 '16 08:05

Frank Vu


People also ask

How do I remove recents from VSCode?

Press Ctrl + Shift + P. Then, within the Quick Open bar, type in >Clear Recently Opened.

How do I delete an open project from VSCode?

Navigate to your project under the Visual Studio Projects folder. Right-click the project and select Delete. A delete confirmation appears. Click OK.

How do you stop a running File in VSCode?

VS Code maintains a debug session while the program is running, and pressing the Stop button terminates the program.


2 Answers

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

like image 120
John Archer Avatar answered Oct 06 '22 20:10

John Archer


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.
like image 30
klewis Avatar answered Oct 06 '22 20:10

klewis