zokugun / MrCode

An opinionated editor based on VSCodium / VSCode
MIT License
63 stars 2 forks source link

moalamri comment on May 10 #12

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hi, I happened to be looking for extension/method/hack that allows me to have folding function within a line content, for example when using utility classes in html such as Tailwind css, the line gets bigger and bigger, making it difficult to read the code with some modern framework. It could be awesome to have something like this:

<div class="...">
      <div class="..."></div>
</div>

Also I found this git that demonstrate the action: 101728151-c98ac480-3aad-11eb-9790-abc8e61b11de

I don't know if this is achievable with MrCode, as it may require some API changing since such core function doesn't exist.

Thank you :)

Originally posted by @moalamri in https://github.com/zokugun/MrCode/issues/6#issuecomment-1122286345

moalamri commented 2 years ago

I've made an extension that make inline folding possible:

Inline Fold

ghost commented 2 years ago

@moalamri Thanks for letting me know about that!