Skip to content

Force newline before function? #205

Answered by kkinnear
agriffis asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Aron!

There is no way, at present, to have a function affect the formatting of the function containing it. Well, not without having every function look into what it contains and look for specific functions that needed to be proceeded by a newline. Which could be done, but it would make the configuration truly unpleasant for every function to be configured to do that.

It would be possible to have some specific functions look into what they contain and precede some functions with newlines.

Alternatively, it is very simple to have when always place its first argument on the same line (if possible) and then the remaining arguments on the next line, regardless of the next arguments and reg…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@agriffis
Comment options

@kkinnear
Comment options

@agriffis
Comment options

Answer selected by agriffis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants