Here’s how you make a custom, global snippet in VSCode.
.code-snippets
extension in ~/Library/Application Support/Code/User/snippets/filename.code-snippets
.I made one that will allow me to type perr
+ TAB to print forced PHP errors.
PHPErrors.code-snippets
{
"Show PHP Errors": {
"scope": "php",
"prefix": "perr",
"body": [
"ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);"
],
"description": "Show PHP Errors"
}
}
And that’s all.
#snippets #visual studio code #visual studio #java