feat(rewrap): enable auto-wrap by default and add keybinding to toggle it

This commit is contained in:
2025-06-11 04:00:11 +01:00
parent 1d015d1705
commit 4f7c759653
2 changed files with 26 additions and 0 deletions

View File

@@ -687,6 +687,18 @@
},
//
// ===========================================================================
// MARK: Rewrap Revived
// ===========================================================================
// Extension:
// - https://marketplace.visualstudio.com/items?itemName=dnut.rewrap-revived
//
{ // Toggle auto wrap in current document.
"key": "ctrl+c q",
"command": "rewrap.toggleAutoWrap",
"when": "editorTextFocus"
},
//
// ===========================================================================
// MARK: Multi-Cursor
// ===========================================================================
//

View File

@@ -319,6 +319,20 @@
"workbench.editor.defaultBinaryEditor": "hexEditor.hexedit",
//
// ===========================================================================
// MARK: Rewrap Revived
// ===========================================================================
// Extension:
// - https://marketplace.visualstudio.com/items?itemName=dnut.rewrap-revived
//
// Enable auto-wrap by default. In programming languages it only applies to
// comments.
"rewrap.autoWrap.enabled": true,
// Only wrap the current paragraph when triggering rewrap with alt+q within a
// comment.
"rewrap.wholeComment": false,
//
//
// ===========================================================================
// MARK: Lang: CSS
// ===========================================================================
//