Skip to content

Commit 14c3c4f

Browse files
committed
global apex
1 parent 0446be8 commit 14c3c4f

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+
// Placeholders with the same ids are connected.
8+
9+
// APEX (put here because anonymous apex is treated as a separate file type)
10+
"Debug Emojis": {
11+
"scope": "apex,apex-anon",
12+
"prefix": "dd",
13+
"body": ["System.debug('${1|🔥,❌,🚽,🌿,💙|}$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1$1');"],
14+
"description": "Make console output noticable"
15+
},
16+
"Debug": {
17+
"scope": "apex,apex-anon",
18+
"prefix": "d",
19+
"body": ["System.debug($1);"],
20+
"description": "Debug value"
21+
},
22+
"Debug String": {
23+
"scope": "apex,apex-anon",
24+
"prefix": "d'",
25+
"body": ["System.debug('$1');"],
26+
"description": "Debug string"
27+
},
28+
"Console Log String": {
29+
"scope": "apex,apex-anon",
30+
"prefix": "d,",
31+
"body": [
32+
"System.debug('➡➡➡ $1 ⬅⬅⬅');",
33+
"System.debug(${1});"
34+
],
35+
"description": "Console log string"
36+
}
37+
}

install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ if [[ -d "$vsCodeDir" ]]; then
9898
#ln -fs /Users/andrewray/configs/code/settings.json /Users/andrewray/Library/Application\ Support/Code/User/
9999
#ln -fs /Users/andrewray/configs/code/snippets/javascript.json "/Users/andrewray/Library/Application Support/Code/User/snippets/javascript.json"
100100
#ln -fs /Users/andrewray/configs/code/snippets/ecmascript.code-snippets.json "/Users/andrewray/Library/Application Support/Code/User/snippets/ecmascript.code-snippets.json"
101+
#ln -fs /Users/andrewray/configs/code/snippets/apex.code-snippets.json "/Users/andrewray/Library/Application Support/Code/User/snippets/apex.code-snippets.json"
101102

102103
let "symlinks+=1"
103104
fi

0 commit comments

Comments
 (0)