One of the most useful features of Sublime Text for me was that it keep a history of all the files that I opened. How can I get this functionality in VS Code?
The list of previously opened files/editors when I open cmd+p
is really small and it doesn't persist across sessions.
Edit: the problem isn't that I lose my previously opened files when I close the session, but that there is no convenient way of accessing a file I opened a week ago, for example.
When you have repository open in Visual Studio code, you can execute the command Git: View History (git log) from the command Plate. This will open the Git History Window with all change logs for the repository. You can then select individual commits for detailed change logs for each of them.
In Visual Studio 2017 version 15.8 and later, use Go To Recent File to see a list of recently visited files in a solution.
By using alt + left / right arrows ( ctrl + shift + - / ctrl + - ) we can switch directly to the previous/next file in the file history.
To see a list of recently opened files (as of v1.42) try this in the command palette:
View: Show All Editors By Most Recently Used
or use this command workbench.action.showAllEditorsByMostRecentlyUsed
in a keybinding.
On mac it's ⌘ + P.
I'm using mac monterey
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With