Possible to fold react Components?

Some folding options I'd like to see,

1. Folding of components, the `<Login ../>` in this case between lines 13-17

2. Folding of conditional renders between lines 11 - 18

3. Folding of round brackets between lines 12 - 18

This is just a small sample of one component, I happen to be working on one which has several components and each having a long list of props, making it difficult to glance the code. The folding options above would make it easier to work with.

 

0
1 comment
Hello!

1. please vote for https://youtrack.jetbrains.com/issue/WEB-31463/Add-code-folding-for-wrapped-attributes-in-HTML-XML-tags-collapse-attributes to get notified on any progress with it

2,3: please file requests for adding these features to youtrack, https://youtrack.jetbrains.com/issues/WEB

Best regards,
Lena
0

Please sign in to leave a comment.