Skip to content

Commit

Permalink
Assign dedicated key bindings to Highlight Matching Tag commands
Browse files Browse the repository at this point in the history
This is to work around an issue where a VS Code key binding can be
scoped to the current language ID of the editor, but not the current
language ID at the cursor. This makes working in JSX/TSX files more
annoying. For more information, see:
<microsoft/vscode#107989 (comment)>
  • Loading branch information
caleb531 committed Feb 15, 2024
1 parent ec1e34d commit fa841b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vscode/keybindings.json
Original file line number Diff line number Diff line change
Expand Up @@ -559,14 +559,14 @@
"command": "-workbench.action.closeOtherEditors"
},
{
"key": "alt+cmd+b",
"key": "ctrl+alt+cmd+b",
"command": "highlight-matching-tag.selectPairContents",
"when": "editorLangId == 'handlebars' || editorLangId == 'html' || editorLangId == 'jsx-tags' || editorLangId == 'svelte' || editorLangId == 'xml'"
"when": "editorTextFocus"
},
{
"key": "alt+cmd+m",
"key": "ctrl+alt+cmd+m",
"command": "highlight-matching-tag.jumpToMatchingTag",
"when": "editorLangId == 'handlebars' || editorLangId == 'html' || editorLangId == 'jsx-tags' || editorLangId == 'svelte' || editorLangId == 'xml'"
"when": "editorTextFocus"
},
{
"key": "cmd+b",
Expand Down

0 comments on commit fa841b8

Please sign in to comment.