|
18 | 18 |
|
19 | 19 | **NOTE:** |
20 | 20 |
|
21 | | -* A diff will be shown only after selecting comparison text first (using `Select Text for Compare`) |
22 | | -* Executing the `Select Text for Compare` or `Compare Text with Previous Selection` command without selecting any text will use the entire text of the current file |
| 21 | +* A diff will be shown only after selecting comparison text first (using `Select Text for Compare`). |
| 22 | +* Executing the `Select Text for Compare` or `Compare Text with Previous Selection` command without selecting any text will use the entire text of the current file. |
23 | 23 |
|
24 | 24 | ## Configurations |
25 | 25 |
|
26 | 26 | * `partialDiff.preComparisonTextNormalizationRules`: Rules to normalize texts for diff view. |
27 | 27 |
|
28 | 28 | It doesn't mutate texts in the editors. Only texts in diff views get normalised. |
29 | | - If a diff is presetned with text normalised (or possibly normalised), `~` is used in the diff title instead of `↔`) |
| 29 | + If a diff is presented with text normalised (or possibly normalised), `~` is used in the diff title instead of `↔`) |
30 | 30 |
|
31 | | - Each rule has `match`, `replaceWith` and optionally `name` |
| 31 | + Each rule has `match`, `replaceWith` and optionally `name`. |
32 | 32 |
|
33 | 33 | * `name`: Optional. Name of the rule to describe what the rule is for. |
34 | | - * `match`: Regular expression to find text you want to normalise. [Global search flag](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions?redirectlocale=en-US&redirectslug=JavaScript%2FGuide%2FRegular_Expressions#Advanced_searching_with_flags) is automatically applied |
| 34 | + * `match`: Regular expression to find text you want to normalise. [Global search flag](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions?redirectlocale=en-US&redirectslug=JavaScript%2FGuide%2FRegular_Expressions#Advanced_searching_with_flags) is automatically applied. |
35 | 35 | * `replaceWith`: One of the following |
36 | 36 | * **Replacement text** as a string. You can use `$N`, where `N` is the index of substring (starting from 1) you captured in `match` with `()`. |
37 | 37 | * **Letter case specification** as an object. Valid cases are `upper` and `lower`. |
@@ -67,9 +67,9 @@ You can quickly mark the selected text by adding the `partial-diff` commands to |
67 | 67 | { "key": "ctrl+1", "command": "extension.partialDiff.markSection1", |
68 | 68 | "when": "editorTextFocus" }, |
69 | 69 | { "key": "ctrl+2", "command": "extension.partialDiff.markSection2AndTakeDiff", |
70 | | - "when": "editorTextFocus" } |
| 70 | + "when": "editorTextFocus" }, |
71 | 71 | { "key": "ctrl+3", "command": "extension.partialDiff.diffSelectionWithClipboard", |
72 | | - "when": "editorTextFocus" } |
| 72 | + "when": "editorTextFocus" }, |
73 | 73 | ``` |
74 | 74 |
|
75 | 75 | ## Known problems |
|
0 commit comments