Skip to content

Instantly share code, notes, and snippets.

Created June 10, 2015 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/18108a3fbaa79433ce65 to your computer and use it in GitHub Desktop.
Save anonymous/18108a3fbaa79433ce65 to your computer and use it in GitHub Desktop.
FSharp indentation recommendation to become based on indent of first character in previous non-blank line
[<AbstractClass>]
(*
//instead of this calm indentation base on indent of first character in previous non-blank line
type View<
'Events,
'Window when
'Window :> Window and
'Window : (new : unit -> 'Window)
>(?window) =
*)
//we have to write this weird thing base on the position of special characters in previous lines
//making indentation base on identifier names
type View<
'Events,
'Window when
'Window :> Window and
'Window : (new : unit -> 'Window)
>(?window) =
let window = defaultArg window (new 'Window())
member this.Window = window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment