Skip to content

Commit fb26c60

Browse files
feat: change default folding setting
closes #60
1 parent 2426b9c commit fb26c60

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Preview color and spectrum.
3838

3939
### Code Folding
4040

41+
> disabled by default, activate with "windicss.enableCodeFolding"
42+
4143
Fold overly long classes to increase readability.
4244

4345
<img src="https://raw.githubusercontent.com/windicss/windicss-intellisense/main/screenshots/highlight.png" alt="Code Folding"/>
@@ -59,7 +61,7 @@ Built-in commands, one-key operation.
5961
| `windicss.enableVariantCompletion` | boolean | true | Enable Variant Completion. |
6062
| `windicss.enableDynamicCompletion` | boolean | true | Enable Dynamic Utilities Completion like p-${int}. |
6163
| `windicss.enableRemToPxPreview` | boolean | true | Enable Rem to Px Preview. |
62-
| `windicss.enableCodeFolding` | boolean | true | Enable ClassNames Code Folding. |
64+
| `windicss.enableCodeFolding` | boolean | false | Enable ClassNames Code Folding. |
6365
| `windicss.foldByLength` | boolean | false | Folding code by length. Default option is false, will fold by utility count. |
6466
| `windicss.foldCount` | number | 3 | Used by foldByCount. |
6567
| `windicss.foldLength` | number | 25 | Used by foldByLength |

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,20 +142,20 @@
142142
"description": "Enable rem to px preview."
143143
},
144144
"windicss.enableCodeFolding": {
145-
"type": "boolean",
146-
"default": true,
147-
"description": "Enable ClassNames Code Folding."
148-
},
149-
"windicss.foldByLength": {
150145
"type": "boolean",
151146
"default": false,
152-
"description": "Folding code by length. Default option is false, will fold by utility count."
147+
"description": "Enable ClassNames Code Folding."
153148
},
154149
"windicss.foldCount": {
155150
"type": "number",
156151
"default": 3,
157152
"description": "Used by foldByCount."
158153
},
154+
"windicss.foldByLength": {
155+
"type": "boolean",
156+
"default": false,
157+
"description": "Folding code by length. Default option is false, will fold by utility count."
158+
},
159159
"windicss.foldLength": {
160160
"type": "number",
161161
"default": 25,

0 commit comments

Comments
 (0)