Closed
Description
Motivation
Doc comment is handy in Typst, while repeaty to repeat the parameters. We can have tinymist to generate a doc comment snippet for use when insert ///
Description
Similar to VSCode auto JSDoc.
Examples/Questions
when insert ///
before a function, we can generate a snippet for doc comment:
///
^
|
#let sinc(x) = if x == 0 { 1 } else { calc.sin(x) / x }
// generate:
/// {$3 Desc}
///
/// - x ({$1}): $2
/// -> {$3}
#let sinc(x) = if x == 0 { 1 } else { calc.sin(x) / x }