Hacker News new | past | comments | ask | show | jobs | submit login

Hey, I'm familiar with VS Code language extensions. Depending on your language you may or may not be able to do this. The controls you have are:

- increaseIndentPattern: If a line matches this pattern, then all the lines after it should be indented once (until another rule matches).

- decreaseIndentPattern: If a line matches this pattern, then all the lines after it should be unindented once (until another rule matches).

- indentNextLinePattern: If a line matches this pattern, then only the next line after it should be indented once.

- unIndentedLinePattern: If a line matches this pattern, then its indentation should not be changed and it should not be evaluated against the other rules.

They are all regex patterns. If you think your language would let you do that, I can try and throw together something for you.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: