Blue Style
JuliaFormatter.BlueStyle — TypeBlueStyle()Formatting style based on BlueStyle and JuliaFormatter#283.
This style is still work-in-progress, and does not yet implement all of the BlueStyle guide.
Configurable options with different defaults to DefaultStyle are:
always_use_return= trueshort_to_long_function_def= truewhitespace_ops_in_indices= trueremove_extra_newlines= truealways_for_in= trueimport_to_using= truepipe_to_function_call= truewhitespace_in_kwargs= falseannotate_untyped_fields_with_any= falseseparate_kwargs_with_semicolon= true
Configuration File Example
The .JuliaFormatter.toml which represents these settings is
style = "blue"Or to use BlueStyle except change one of the settings:
style = "blue"
remove_extra_newlines = falseDirect Usage
format("file.jl", BlueStyle())Or to use BlueStyle except change one of the settings:
format("file.jl", BlueStyle(), remove_extra_newlines=false)