{ "title": "CustomCapsLock : VSCode support", "rules": [ { "description": "CustomCapsLock | VSCODE : Go back/forward (b,n)", "manipulators": [ { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "b", "modifiers": { "optional": [ "caps_lock" ] } }, "to": [ { "key_code": "hyphen", "modifiers": [ "left_control" ] } ], "type": "basic" }, { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "n", "modifiers": { "optional": [ "caps_lock" ] } }, "to": [ { "key_code": "hyphen", "modifiers": [ "left_control", "left_shift" ] } ], "type": "basic" } ] }, { "description": "CustomCapsLock | VSCODE : Go to references (m) ", "manipulators": [ { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "m", "modifiers": { "optional": [ "caps_lock" ] } }, "to": [ { "key_code": "f12", "modifiers": [ "fn" ] } ], "type": "basic" }, { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "m", "modifiers": { "mandatory": [ "left_command" ], "optional": [ "caps_lock" ] } }, "to": [ { "key_code": "f12", "modifiers": [ "fn", "left_shift" ] } ], "type": "basic" }, { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "m", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "caps_lock" ] } }, "to": [ { "key_code": "f12", "modifiers": [ "fn", "left_command" ] } ], "type": "basic" } ] }, { "description": "CustomCapsLock | VSCODE : Find error (comma)", "manipulators": [ { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "comma", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "f8", "modifiers": [ "fn" ] } ], "type": "basic" } ] }, { "description": "CustomCapsLock | VSCODE : Selection expand/shrink (period)", "manipulators": [ { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "period", "modifiers": { "mandatory": [ "left_command" ], "optional": [ "any" ] } }, "to": [ { "key_code": "left_arrow", "modifiers": [ "left_control", "left_shift", "left_command" ] } ], "type": "basic" }, { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "period", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "right_arrow", "modifiers": [ "left_control", "left_shift", "left_command" ] } ], "type": "basic" } ] }, { "description": "CustomCapsLock | VSCODE : Toggle line comment (slash)", "manipulators": [ { "conditions": [ { "name": "capslock_mode", "type": "variable_if", "value": 1 }, { "bundle_identifiers": [ "^com\\.microsoft\\.VSCode$" ], "type": "frontmost_application_if" } ], "from": { "key_code": "slash", "modifiers": { "optional": [ "any" ] } }, "to": [ { "key_code": "slash", "modifiers": [ "left_command" ] } ], "type": "basic" } ] } ] }