zokugun / vscode-explicit-folding

Customize your Folding for Visual Studio Code
MIT License
95 stars 14 forks source link

can I maintain "editor.foldingStrategy": "indentation" #115

Open nolanjj opened 1 month ago

nolanjj commented 1 month ago

my setting.json: "editor.foldingStrategy": "auto", "editor.defaultFoldingRangeProvider": "zokugun.explicit-folding", "explicitFolding.rules": { "*": [ { "begin": "{{{", "end": "}}}" }, { "begin": "{", "end" : "}" }, // { // "begin": "(", // "end" : ")" // }, ] },

it work well!,very convenient!!!

but I also want to maintain the feature of "indentation" so I can image

How to achieve this,thank you.

daiyam commented 1 month ago

You have to use the Indentation rule

"explicitFolding.rules": {
    "*": [
        ...
        {
            "indentation": true
        }
    ]
}
nolanjj commented 1 month ago

You have to use the Indentation rule

"explicitFolding.rules": {
  "*": [
      ...
      {
          "indentation": true
      }
  ]
}

grateful!!!