Is there plugin to fold widget code of compose?
# compose
a
Is there plugin to fold widget code of compose?
z
What do you mean with fold?
a
i mean Code folding feature (minimise code area of widget like image i added )…i want to expand/collapse widget code like xml
j
All functions are collapsible automatically
You can see this in your screenshot
a
I mean widgets like Text() Row() etc.. Not support code folding
s
They're functions, and the lambdas for their content in the invocations should also be collapsible
message has been deleted
a
Yeah code inside {} is collapsible but code inside () Like Text(modifier=“” text.. fontSize… etc) I want to collapse it
s
Ah but parameters list have never been collapsible in IJ/AS
a
Yeah i know so i said plugin …but it’s main code of widget so i want plugin to make it foldable
s
I don't know of one, you're probably better off writing one 🙂
a
Ok I will try😀 thanks for your time
d
Before you do I would ask if the work involved to do it will have sufficient return on investment? Also, if you are going to make the plugin public, will you be wiling to maintain it?
a
Hi Eric…. i think it will help us and it is the main reason to make it so it will be free for sure And iam thinking about create small team to develop it … I think we can create plugin to create region/endregion for each widget automatically it will be easier than any other ideas or use Folding Builder
c
You should also consider filing a feature request for Kotlin in general. Might be better in the long run for IntelliJ to do it.