Skip to content

Best way to format source generated code? #75722

Answered by CyrusNajmabadi
thomhurst asked this question in Q&A
Discussion options

You must be logged in to vote

Best way is to just emit in a properly formatted fashion to begin with. Just use a string building abstraction that supports indentation. Indent when you enter a block, and dedent when you leave.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@thomhurst
Comment options

@CyrusNajmabadi
Comment options

@thomhurst
Comment options

@CyrusNajmabadi
Comment options

Answer selected by CyrusNajmabadi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question Resolution-Answered The question has been answered
3 participants