editor - Auto indent & unindent for F# -
i'm learning f# , i'm looking ide or editor supports auto indent , hotkey unindent when done writing function. i'm using visual studio 2017 mac right , auto indent when want exit function have backspace 3 or 4 times go starting column exit function. kind of pain in tuchus. have advice (excluding suck up).
as mentioned in comments, various editors have various keyboard shortcuts let jump previous indentation level more rapidly hitting backspace 4 times.
for doing automatically, think potentially tricky (especially unindentation), because editor not have indication when you're finished writing function. example typed:
let range lo hi = [ lo .. hi ]
after hit enter after closing square bracket, might either want unindent , write function, or might want continue indented like:
let range lo hi = [ lo .. hi ] |> list.map formatnumber
so, doing automatically makes lot of sense curly-bracket languages, not obvious languages f# indentation matters.
Comments
Post a Comment