Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. {
  2. ///personal snippets nice its a bitch in vscode to have them built in
  3.  
  4. "new function": {
  5. "prefix": "function",
  6. "body": [
  7. "public function $2():Void {",
  8. "///",
  9. "}",
  10. ],
  11. "description": "new public function"
  12. },
  13.  
  14. "new private function": {
  15. "prefix": "privatefunction",
  16. "body": [
  17. "private function $2():Void {",
  18. "///",
  19. "}",
  20. ],
  21. "description": "new private function"
  22. },
  23.  
  24. "if statement": {
  25. "prefix": "ifstatement",
  26. "body": [
  27. "if ($2){",
  28. "$3",
  29. "}",
  30. ],
  31. "description": "if statement"
  32. },
  33.  
  34. "if else statement": {
  35. "prefix": "ifelse",
  36. "body": [
  37. "if ($2){",
  38. "$3",
  39. "} else {",
  40. "$4",
  41. "}",
  42. ],
  43. "description": "if else statement"
  44. },
  45.  
  46. "else if statement": {
  47. "prefix": "elseif",
  48. "body": [
  49. "else if ($2){",
  50. "$3",
  51. "}",
  52. ],
  53. "description": "else if statement"
  54. },
  55.  
  56. "else statement": {
  57. "prefix": "elsestatement",
  58. "body": [
  59. "else {",
  60. "$2",
  61. "}",
  62. ],
  63. "description": "else statement"
  64. },
  65.  
  66. "trace": {
  67. "prefix": "trace",
  68. "body": [
  69. "trace($2);",
  70. ],
  71. "description": "trace"
  72. },
  73.  
  74. "for": {
  75. "prefix": "forloop",
  76. "body": [
  77. "for ($2 in 0 ... $3){",
  78. "///",
  79. "}",
  80. ],
  81. "description": "for loop"
  82. },
  83.  
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement