Just click preference of vscode and then in the json file, add:
{ "key": "alt+z", "command": "-editor.action.toggleWordWrap",
"when": "editorTextFocus" }
in the keybinding.json.{ "key": "alt+z", "command": "-editor.action.toggleWordWrap",
"when": "editorTextFocus" }
Removing a specific key binding rule
You can write a key binding rule that targets the removal of a specific default key binding. With the keybindings.json
, it was always possible to redefine all the key bindings of VS Code, but it can be very difficult to make a small tweak, especially around overloaded keys, such as Tab or Escape. To remove a specific key binding, simply add a -
to the command
and the rule will be a removal rule.
Here is an example:
// In Default Keyboard Shortcuts ... { "key": "tab", "command": "tab", "when": ... }, { "key": "tab", "command": "editor.emmet.action.expandAbbreviation", "when": ... }, { "key": "tab", "command": "jumpToNextSnippetPlaceholder", "when": ... }, { "key": "tab", "command": "acceptQuickFixSuggestion", "when": ... }, { "key": "tab", "command": "acceptSelectedSuggestion", "when": ... }, ... // To remove the second rule, for example, add in keybindings.json: { "key": "tab", "command": "-editor.emmet.action.expandAbbreviation" }
没有评论:
发表评论