Skip to content

Add region folding for vscode#1203

Merged
DanielGavin merged 1 commit intoDanielGavin:masterfrom
ctzcs:Dev
Feb 14, 2026
Merged

Add region folding for vscode#1203
DanielGavin merged 1 commit intoDanielGavin:masterfrom
ctzcs:Dev

Conversation

@ctzcs
Copy link
Copy Markdown
Contributor

@ctzcs ctzcs commented Dec 5, 2025

Usually people perfer to write code in one file in odin. Region folding makes code more clearly.
When someone reads the code, this lets them know what each piece is. And other languages generally have this feature.

//region name
//endregion

@xoxorwr
Copy link
Copy Markdown
Contributor

xoxorwr commented Jan 6, 2026

I was looking for something like that, ping @DanielGavin

@DanielGavin
Copy link
Copy Markdown
Owner

Sure seems like a fine idea.

@reecewbourgeois
Copy link
Copy Markdown

+1 from me on wanting this feature. I initially was defining my own regions and then indenting everything within them:

// ** BEGIN Example Block ** //

    // Some code here
	
// ** END Example Block ** //

But then odinfmt removes the extra spacing within the "regions," so having it enabled in the language configuration would be nice.

@BradLewis
Copy link
Copy Markdown
Collaborator

I can merge in the change though I'm unable to update the vscode extension. We'll need @DanielGavin for that.

@DanielGavin DanielGavin merged commit ffb2796 into DanielGavin:master Feb 14, 2026
@reecewbourgeois
Copy link
Copy Markdown

Much Appreciated! Just pulled it down and it works like a charm.

@SolidAlloy SolidAlloy mentioned this pull request Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants