Closed AgamlaRage closed 5 years ago
Hi @AgamlaRage,
I'm glad you like the extension.
I've not updated to the latest version of VSCode, but the default "editor.foldingStrategy": "auto"
should fold as you like...
Maybe you can try:
{
"beginRegex": " \\{\\s*$",
"endRegex": "^\\s*\\}"
}
Hi @daiyam, your regexp seems to works for me! Thx
Before closing the issue, I want to propose something to you, maybe you already planed it or thought about it. You could create a markdown table, referencing the good regexp that people shared to you. Maybe that will prevent you from spending extra time telling others people like me the good regexp.
Example:
Language | beginRegex | endRegex |
---|---|---|
SCSS | \{\s*$ | ^\s*\} |
Javascript | ||
PHP |
Thx again for your extension. I'll let you know if I find regexp <3
Hello,
first of all thank you so much for your extension. I feel like I was waiting one line code folding since decades!
I'm trying to creates regexp for SCSS files. But it looks like I can't select the linebreaks characters.
Regexp that is working and tested with Regexr.
Explanation
[\n| ]
get either linebreak or space}
get closing braceTest code
With this I'm able to fold the nested block in 1 line, but not the parent element. I think my regexp is all good except the linebreak part.
Could someone help me please ?
Thx