Wolfram Language Code Snippets
This VS Code extension provides a collection of useful code snippets for Wolfram Language development.
Snippets
Prefix |
Description |
api |
Create an APIFunction |
block |
Create a Block construct |
func |
Define a function |
desc |
Create a description comment |
do |
Create a Do loop |
function |
Create a Function |
if |
Create an If conditional |
module |
Create a Module |
options |
Define Options for a function |
package |
Create a Package template |
usage |
Set usage message for a symbol |
switch |
Create a Switch statement |
table |
Create a Table construct |
which |
Create a Which conditional |
while |
Create a While loop |
with |
Create a With statement |
cleanup |
Create a WithCleanup construct |
sec |
Create a VSCode section |
subsec |
Create a VSCode subsection |
subsubsec |
Create a VSCode subsection |
ignore |
Create a linter ignore block |
Usage
To use these snippets:
- Start typing the prefix (e.g.,
module ) in a Wolfram Language file
- Press
Tab or select the snippet from the suggestion list
- The snippet will expand with placeholders that you can navigate through using
Tab
| |