I'm coming from other IDEs in which when you globally search for some content across your project (in Visual studio code it's done by pressing CMD+SHIT+F) and then want to move between the founded items, you just press down/up and start moving between them.
I was looking to get this kind of behavior in Visual Studio Code, I found out there's a command for that that is describerd here: In vscode, how do I jump to the results of "find in files" without using the mouse
But when I was doing the following inkeybinds.json:
[
{
"key": "down",
"command": "runCommands",
"args": {
"commands": [
"search.action.focusSearchList",
"list.focusDown",
"workbench.action.focusActiveEditorGroup"
]
}
},
{
"key": "up",
"command": "runCommands",
"args": {
"commands": [
"search.action.focusSearchList",
"list.focusUp",
"workbench.action.focusActiveEditorGroup"
]
}
}
]
It just messed up, so when I'm coding and want to move line down by pressing the down key, it applies the sequence commands in the keybinds.json
Is there a way to achieve my goal? So for instance only to apply the above commands when I'm focused on the search pane?
whenproperty, or add a modifierShift/Alt/Ctrl