Blue Style
JuliaFormatter.BlueStyle — TypeBlueStyle()Formatting style based on BlueStyle and JuliaFormatter#283.
Configurable options with different defaults to DefaultStyle are:
always_for_in= trueannotate_untyped_fields_with_any= falseconditional_to_if= trueimport_to_using= trueindent_submodule= truepipe_to_function_call= trueremove_extra_newlines= trueseparate_kwargs_with_semicolon= trueshort_to_long_function_def= truewhitespace_in_kwargs= falsewhitespace_ops_in_indices= trueyas_style_nesting= false
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)