add vscode examples
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "930fdb3b-11a8-46fe-9bac-577332e2640e",
|
||||
"snapshot": "vscode",
|
||||
"instruction": "I want to create a shortcut to shift my focus cursor from terminal to Editor in VS Code. Please help me create this shortcut to be 'ctrl+j'.",
|
||||
"source": "https://superuser.com/questions/1270103/how-to-switch-the-cursor-between-terminal-and-code-in-vscode",
|
||||
"config": [
|
||||
{
|
||||
"type": "launch",
|
||||
"parameters": {
|
||||
"command": [
|
||||
"code"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "Visual Studio Code"
|
||||
}
|
||||
}
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"vscode"
|
||||
],
|
||||
"evaluator": {
|
||||
"func": "check_json_keybindings",
|
||||
"expected": {
|
||||
"type": "rule",
|
||||
"rules": {
|
||||
"expect":
|
||||
{
|
||||
"key": "ctrl+j",
|
||||
"command": "workbench.action.focusActiveEditorGroup",
|
||||
"when": "terminalFocus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"result": {
|
||||
"type": "vm_file",
|
||||
"path": "/home/user/.config/Code/User/keybindings.json",
|
||||
"dest": "keybindings.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user