Zulip Chat Archive

Stream: new members

Topic: Auto-filling fields of a structure


Stuart Presnell (Jan 12 2022 at 17:07):

If I'm about to define a structure (e.g. an equiv) is there some clever trick I can do to auto-fill the fields

{
to_fun    := sorry,
inv_fun   := sorry,
left_inv  := sorry,
right_inv := sorry,
}

Johan Commelin (Jan 12 2022 at 17:08):

write _, and click on the :bulb: then select the item containing "skeleton"

Johan Commelin (Jan 12 2022 at 17:08):

I think Ctrl+. is a shortcut for the :bulb:

Johan Commelin (Jan 12 2022 at 17:08):

def my_equiv : α  β :=
_ -- put your cursor on the `_`

Stuart Presnell (Jan 12 2022 at 17:09):

Magic! Thank you!


Last updated: Dec 20 2023 at 11:08 UTC