VSCode provide a command: workbench.action.focusFirstEditorGroup
to focus buffer of first editor group.
But what I need is:
After I press `<option+l>`
if current group is the first one
focus Explorer
else
move to previes editor group
So I need to check whether current group is the first group.
Is there a way to make it? Thanks!
2
Answers
There is a context key you can use:
activeEditorGroupIndex
.If the active editor is in the first group then
activeEditorGroupIndex
will = 1, and so on.So try these keybindings:
You can cycle between the VSCode panes using
workbench.action.navigateRight
orworkbench.action.navigateLeft