From 4f7c75965355e42a2075f08d5c8754fb484c6749 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 11 Jun 2025 04:00:11 +0100 Subject: [PATCH] feat(rewrap): enable auto-wrap by default and add keybinding to toggle it --- keybindings.json | 12 ++++++++++++ settings.json | 14 ++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/keybindings.json b/keybindings.json index 50e039c..7f65f3c 100644 --- a/keybindings.json +++ b/keybindings.json @@ -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 // =========================================================================== // diff --git a/settings.json b/settings.json index ff0e33c..ac6fe4d 100644 --- a/settings.json +++ b/settings.json @@ -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 // =========================================================================== //