Skip to content

Instantly share code, notes, and snippets.

@mattias-sanfridsson
Last active December 6, 2019 07:27
Show Gist options
  • Select an option

  • Save mattias-sanfridsson/79cb32fe531b9078582b0f91a1ebc602 to your computer and use it in GitHub Desktop.

Select an option

Save mattias-sanfridsson/79cb32fe531b9078582b0f91a1ebc602 to your computer and use it in GitHub Desktop.
VSCode config
{
"PHPUnit Test": {
"scope": "php",
"prefix": "test",
"body": [
"/** @test */",
"public function $1()",
"{",
" $2",
"}",
]
},
"hasMany": {
"scope": "php",
"prefix": "@hasMany",
"body": [
"\\Illuminate\\Database\\Eloquent\\Relations\\HasMany"
]
},
"belongsTo": {
"scope": "php",
"prefix": "@belongsTo",
"body": [
"\\Illuminate\\Database\\Eloquent\\Relations\\BelongsTo"
]
},
"jsonResponse": {
"scope": "php",
"prefix": "@jsonResponse",
"body": [
"\\Illuminate\\Http\\JsonResponse"
]
},
"Public method": {
"scope": "php",
"prefix": "pubf",
"body": [
"public function $1()",
"{",
"\t$2",
"}"
],
"description": "A public method."
},
"Class": {
"scope": "php",
"prefix": "class",
"body": [
"class ${TM_FILENAME_BASE} {",
" $1",
"}"
],
"description": "A new class."
},
"Log to console": {
"scope": "javascript"
"prefix": "clog",
"body": [
"console.log($1);"
],
"description": "Log to console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment