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.
Using the keybindings below allows you to scroll back and forth like in IntelliJ.
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"
},
...
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.