Skip to content

Instantly share code, notes, and snippets.

@erik4github
Created March 11, 2021 22:57
Show Gist options
  • Save erik4github/246034202fa4b0991ccaee5016b267e8 to your computer and use it in GitHub Desktop.
Save erik4github/246034202fa4b0991ccaee5016b267e8 to your computer and use it in GitHub Desktop.
Apex User Snippets for VSCode
{
"InvocableMethod": {
"prefix": "InvocableMethod",
"body": [
"@InvocableMethod(label='$1' description='$2' callout=${3|true,false|} category='$4' configurationEditor='$5')"
],
"description": "Apex InvocableMethod Annotation, @see https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_InvocableMethod.htm"
},
"InvocableVariable": {
"prefix": "InvocableVar",
"body": [
"@InvocableVariable(label='$1' description='$2' required=${3|true,false|})"
],
"description": "Apex InvocableVariable Annotation, @see https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_InvocableVariable.htm"
},
"ArrayList": {
"prefix": "Array",
"body": "${1:type}[] ${2:varName} = new ${1:type}[]{${3:element}};"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment