Skip to content
Steve Baker edited this page Feb 15, 2021 · 4 revisions
Documentation has been moved to https://stkb.github.io/Rewrap. This wiki is no longer maintained and may be out of date.

Rewrap's main command has the default keybinding Alt+Q. If you want to change it to something else, add something like this to your keybindings.json file. For example for Ctrl+Shift+Q:

{ 
  "key": "ctrl+shift+q", "command": "rewrap.rewrapComment"
}

Custom column command

To add a keybinding for the Wrap Comment / Text at column... command, use its rewrap.rewrapCommentAt id:

{ 
  "key": "alt+shift+q", "command": "rewrap.rewrapCommentAt"
}

Auto-wrap command

To add a keybinding for the auto-wrap toggle, use the command ID rewrap.toggleAutoWrap.

{
    "key": "shift+alt+q", "command": "rewrap.toggleAutoWrap"
}

Old keybinding

The original keybinding for Rewrap was Ctrl+K Ctrl+W, but this has been removed in favor of Alt+Q.

If you prefer to use this shortcut, you can add it to your keybindings.json file:

{ 
  "key": "ctrl+k ctrl+w", "command": "rewrap.rewrapComment"
}