Skip to content

brianegan/vscode-intellij-recent-files

 
 

Repository files navigation

vscode-intellij-recent-files

This plugin adds a command that makes the VSCode quickOpen command behave like the Recent Files command in IntelliJ. The only difference between the two behaviors is that the IntelliJ behavior allows you to switch to the previously open file with a single keypress by skipping the currently open file. This is the only behaviour that makes sense to me: why would I possibly want to open the file that I already have open?

This plugin allows for the quick "alt-tab" style of switching back and forth between your currently open file and the previous one, which pleases me greatly.

vscode-intellij-recent-files alt-tab GIF

Using the keybindings below allows you to scroll back and forth like in IntelliJ.

vscode-intellij-recent-files scroll GIF

Using the extension

Make sure the following bindings are in your keybindings.json (adjust for your preferred keys as required):

    ...
    {
        "key": "cmd+e",
        "command": "-workbench.action.openRecent"
    },
    {
        "key": "cmd+e",
        "command": "extension.intellijRecentFiles",
        "when": "!inQuickOpen"
    },
    {
        "key": "cmd+e",
        "command": "workbench.action.quickOpenNavigateNext",
        "when": "inQuickOpen"
    },
    {
        "key": "shift+cmd+e",
        "command": "workbench.action.quickOpenNavigatePrevious",
        "when": "inQuickOpen"
    },
    ...

Development

Install tools with asdf:

asdf install

Install node dependencies:

npm install

Start Debugging in VS Code with F5.

Follow these instructions to publish the extension.

About

IntelliJ-style recent files command for VS Code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%