Skip to content

Instantly share code, notes, and snippets.

@ortuagustin
Created April 22, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ortuagustin/c9aec9111ee9d10d865866e7a65cd027 to your computer and use it in GitHub Desktop.
Save ortuagustin/c9aec9111ee9d10d865866e7a65cd027 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-22T15:10:56.813Z","extensionVersion":"v3.2.8"}
[
{
"metadata": {
"id": "ae903c6f-d094-48b1-918b-18947348fe44",
"publisherId": "tobiasalthoff.atom-material-theme",
"publisherDisplayName": "tobiasalthoff"
},
"name": "atom-material-theme",
"publisher": "tobiasalthoff",
"version": "1.5.0"
},
{
"metadata": {
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29",
"publisherId": "formulahendry.auto-close-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-close-tag",
"publisher": "formulahendry",
"version": "0.5.6"
},
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.0.15"
},
{
"metadata": {
"id": "b7883d89-4aba-4acb-a8f3-44dd90fcc5a0",
"publisherId": "balmor.behave",
"publisherDisplayName": "balmor"
},
"name": "behave",
"publisher": "balmor",
"version": "1.6.0"
},
{
"metadata": {
"id": "2dd41a16-fc28-4680-a274-a850fa5f1098",
"publisherId": "calebporzio.better-phpunit",
"publisherDisplayName": "calebporzio"
},
"name": "better-phpunit",
"publisher": "calebporzio",
"version": "1.4.0"
},
{
"metadata": {
"id": "5a6e2b21-1d61-4acd-b31b-907f9c23f18a",
"publisherId": "CoenraadS.bracket-pair-colorizer-2",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer-2",
"publisher": "CoenraadS",
"version": "0.0.28"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.2.8"
},
{
"metadata": {
"id": "d1ffdad8-b484-4496-8913-350461fb2afa",
"publisherId": "vincentkos.elegant-php",
"publisherDisplayName": "vincentkos"
},
"name": "elegant-php",
"publisher": "vincentkos",
"version": "0.1.1"
},
{
"metadata": {
"id": "acb17248-5723-4d45-8a3f-14e7418db973",
"publisherId": "muhammadsammy.flat-ui-dark",
"publisherDisplayName": "muhammadsammy"
},
"name": "flat-ui-dark",
"publisher": "muhammadsammy",
"version": "0.1.2"
},
{
"metadata": {
"id": "8bb12ae3-73f8-40cf-86b7-4bd5729c6238",
"publisherId": "GrapeCity.gc-excelviewer",
"publisherDisplayName": "GrapeCity"
},
"name": "gc-excelviewer",
"publisher": "GrapeCity",
"version": "2.1.32"
},
{
"metadata": {
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511",
"publisherId": "donjayamanne.githistory",
"publisherDisplayName": "donjayamanne"
},
"name": "githistory",
"publisher": "donjayamanne",
"version": "0.4.6"
},
{
"metadata": {
"id": "aae00486-7e92-42b3-91b0-2b419e4f3875",
"publisherId": "vincaslt.highlight-matching-tag",
"publisherDisplayName": "vincaslt"
},
"name": "highlight-matching-tag",
"publisher": "vincaslt",
"version": "0.9.1"
},
{
"metadata": {
"id": "76fbde36-77d4-4688-b1f8-202727442961",
"publisherId": "tht13.html-preview-vscode",
"publisherDisplayName": "tht13"
},
"name": "html-preview-vscode",
"publisher": "tht13",
"version": "0.2.5"
},
{
"metadata": {
"id": "26a529c9-2654-4b95-a63f-02f6a52429e6",
"publisherId": "zhuangtongfa.Material-theme",
"publisherDisplayName": "zhuangtongfa"
},
"name": "Material-theme",
"publisher": "zhuangtongfa",
"version": "2.21.0"
},
{
"metadata": {
"id": "79afa437-682e-4fa2-a4fd-87844832a1dc",
"publisherId": "ryu1kn.partial-diff",
"publisherDisplayName": "ryu1kn"
},
"name": "partial-diff",
"publisher": "ryu1kn",
"version": "1.4.0"
},
{
"metadata": {
"id": "a439d61f-cd9c-453f-b8c7-186f73d44915",
"publisherId": "MehediDracula.php-constructor",
"publisherDisplayName": "MehediDracula"
},
"name": "php-constructor",
"publisher": "MehediDracula",
"version": "0.1.2"
},
{
"metadata": {
"id": "b06b65b2-6ea9-4045-b166-54aa63205261",
"publisherId": "junstyle.php-cs-fixer",
"publisherDisplayName": "junstyle"
},
"name": "php-cs-fixer",
"publisher": "junstyle",
"version": "0.1.118"
},
{
"metadata": {
"id": "ca0094fa-0dc7-4847-ae5d-879442c099ca",
"publisherId": "neilbrayfield.php-docblocker",
"publisherDisplayName": "neilbrayfield"
},
"name": "php-docblocker",
"publisher": "neilbrayfield",
"version": "1.8.0"
},
{
"metadata": {
"id": "5e69f001-f945-4c97-baf0-320d82a153b3",
"publisherId": "felixfbecker.php-intellisense",
"publisherDisplayName": "felixfbecker"
},
"name": "php-intellisense",
"publisher": "felixfbecker",
"version": "2.3.10"
},
{
"metadata": {
"id": "651dce1f-eda8-4a5b-aa26-0d1266de8ed1",
"publisherId": "MehediDracula.php-namespace-resolver",
"publisherDisplayName": "MehediDracula"
},
"name": "php-namespace-resolver",
"publisher": "MehediDracula",
"version": "1.1.7"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "1.8.1"
},
{
"metadata": {
"id": "e96f7482-8e97-4155-8a7c-ad5fab4d8b2d",
"publisherId": "jprestidge.theme-material-theme",
"publisherDisplayName": "jprestidge"
},
"name": "theme-material-theme",
"publisher": "jprestidge",
"version": "1.0.1"
},
{
"metadata": {
"id": "52e8af69-4ed3-4810-b2f3-32c4c2bd7a6c",
"publisherId": "HaaLeo.timing",
"publisherDisplayName": "HaaLeo"
},
"name": "timing",
"publisher": "HaaLeo",
"version": "2.0.0"
},
{
"metadata": {
"id": "3324c5be-43aa-4c39-a0f8-d94c2978804f",
"publisherId": "whatwedo.twig",
"publisherDisplayName": "whatwedo"
},
"name": "twig",
"publisher": "whatwedo",
"version": "1.0.2"
},
{
"metadata": {
"id": "2f5dd8cb-d251-4d70-abfe-ddebcb077483",
"publisherId": "octref.vetur",
"publisherDisplayName": "octref"
},
"name": "vetur",
"publisher": "octref",
"version": "0.18.1"
},
{
"metadata": {
"id": "d637104e-1fd7-4063-98fc-8afe46012c9b",
"publisherId": "sleistner.vscode-fileutils",
"publisherDisplayName": "sleistner"
},
"name": "vscode-fileutils",
"publisher": "sleistner",
"version": "2.13.5"
},
{
"metadata": {
"id": "80e9cc3c-eb09-48ed-afda-f1cfd9c9ca3f",
"publisherId": "phproberto.vscode-php-getters-setters",
"publisherDisplayName": "phproberto"
},
"name": "vscode-php-getters-setters",
"publisher": "phproberto",
"version": "1.2.3"
},
{
"metadata": {
"id": "020e14e4-3f0d-41d4-901d-4d28c9775544",
"publisherId": "gamunu.vscode-yarn",
"publisherDisplayName": "gamunu"
},
"name": "vscode-yarn",
"publisher": "gamunu",
"version": "1.6.0"
},
{
"metadata": {
"id": "6f99be10-9aad-4b1c-8691-bcae8ae7b104",
"publisherId": "dariofuzinato.vue-peek",
"publisherDisplayName": "dariofuzinato"
},
"name": "vue-peek",
"publisher": "dariofuzinato",
"version": "1.0.2"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+shift+F9",
"command": "workbench.action.tasks.runTask",
"args": "run-test-line"
},
{
"key": "ctrl+F9",
"command": "workbench.action.tasks.runTask",
"args": "run-test-file"
},
{
"key": "ctrl+F5",
"command": "workbench.action.tasks.runTask",
"args": "rerun-last-test"
},
{
"key": "ctrl+meta+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+meta+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+alt+up",
"command": "-editor.action.copyLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+`",
"command": "erb.toggleTags",
"when": "editorTextFocus && editorLangId == erb"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.selectToBracket"
},
{
"key": "ctrl+shift+up",
"command": "-editor.action.insertCursorAbove",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "-editor.action.insertCursorBelow",
"when": "editorTextFocus"
},
{
"key": "alt+f",
"command": "rails.createView"
},
{
"key": "alt+c",
"command": "-toggleFindCaseSensitive",
"when": "editorFocus"
},
{
"key": "alt+c",
"command": "rails.switchToController"
},
{
"key": "alt+m",
"command": "rails.switchToModel"
},
{
"key": "alt+v",
"command": "rails.switchToView"
},
{
"key": "alt+t",
"command": "rails.switchToTest"
},
{
"key": "ctrl+shift+down",
"command": "editor.action.jumpToBracket"
},
{
"key": "ctrl+alt+right",
"command": "workbench.action.splitEditor"
},
{
"key": "alt+right",
"command": "workbench.action.focusNextGroup"
},
{
"key": "ctrl+k ctrl+right",
"command": "-workbench.action.focusNextGroup"
},
{
"key": "alt+left",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+1",
"command": "-workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+[BracketLeft]",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+e",
"command": "workbench.action.gotoSymbol"
},
{
"key": "ctrl+shift+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "tab",
"command": "-insertSnippet",
"when": "editorTextFocus && hasSnippetCompletions && !editorTabMovesFocus && !inSnippetMode"
},
{
"key": "ctrl+j",
"command": "-workbench.action.togglePanel"
},
{
"key": "ctrl+shift+[BracketLeft]",
"command": "workbench.action.terminal.new"
},
{
"key": "ctrl+[BracketRight]",
"command": "erb.toggleTags"
},
{
"key": "alt+t",
"command": "better-phpunit.run-previous"
},
{
"key": "win+k win+p",
"command": "-better-phpunit.run-previous"
},
{
"key": "ctrl+win+t",
"command": "better-phpunit.run"
},
{
"key": "win+k win+r",
"command": "-better-phpunit.run"
},
{
"key": "ctrl+numpad_divide",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+oem_2",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+shift+e",
"command": "editor.emmet.action.wrapWithAbbreviation",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+down",
"command": "workbench.action.terminal.focusNext"
},
{
"key": "ctrl+up",
"command": "workbench.action.terminal.focusPrevious"
}
]
{
// Define el lenguaje para mostrar de VSCode.
// Consulte https://go.microsoft.com/fwlink/?LinkId=761051 para obtener una lista de idiomas compatibles.
// Al cambiar el valor se requiere reiniciar VSCode.
"locale":"en"
}
{
"editor.tabSize": 4,
"editor.stablePeek": true,
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"editor.renderIndentGuides": true,
"workbench.startupEditor": "newUntitledFile",
"editor.minimap.enabled": false,
"files.associations": {
"*.rb": "ruby",
".php_cs": "php",
"*.yml.*": "yaml"
},
"emmet.includeLanguages": {
"twig": "html",
"vue": "html",
"vue-html": "html",
},
"editor.wordSeparators": "`~@#$%^&*()-=+[{]}\\|;:'\",.<>/",
"files.trimTrailingWhitespace": true,
"sync.gist": "",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.forceDownload": false,
"sync.quietSync": false,
"sync.askGistName": false,
"window.zoomLevel": 0,
"workbench.statusBar.visible": true,
"explorer.confirmDelete": false,
"git.confirmSync": false,
"explorer.confirmDragAndDrop": false,
"explorer.openEditors.visible": 0,
"search.smartCase": true,
"workbench.activityBar.visible": false,
"workbench.colorCustomizations": {
"activityBarBadge.background": "#80CBC4",
"list.activeSelectionForeground": "#80CBC4",
"list.inactiveSelectionForeground": "#80CBC4",
"list.highlightForeground": "#80CBC4",
"scrollbarSlider.activeBackground": "#80CBC450",
"editorSuggestWidget.highlightForeground": "#80CBC4",
"textLink.foreground": "#80CBC4",
"progressBar.background": "#80CBC4",
"pickerGroup.foreground": "#80CBC4",
"tab.activeBorder": "#80CBC4"
},
"sync.removeExtensions": true,
"sync.syncExtensions": true,
"git.autofetch": true,
"window.menuBarVisibility": "toggle",
"editor.folding": false,
"editor.glyphMargin": false,
"git.decorations.enabled": true,
"terminal.integrated.shell.windows": "C:\\Users\\agustin.ortu\\AppData\\Local\\Programs\\Git\\bin\\bash.exe",
"better-phpunit.phpunitBinary": "clear && vendor/bin/simple-phpunit",
"php.suggest.basic": false,
"window.restoreWindows": "all",
"search.useIgnoreFiles": false,
"auto-close-tag.activationOnLanguage": [
"xml",
"php",
"blade",
"twig",
"ejs",
"jinja",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"plaintext",
"markdown",
"vue",
"liquid",
"erb",
"lang-cfml",
"cfml",
"HTML (Eex)"
],
"php-cs-fixer.executablePath": "php-cs-fixer.bat",
"php-cs-fixer.executablePathWindows": "php-cs-fixer.bat",
"extensions.ignoreRecommendations": true,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"breadcrumbs.enabled": true,
"search.exclude": {
"**/delpoy": true,
"**/node_modules": true,
"**/bower_components": true
},
"window.titleBarStyle": "custom",
"workbench.editor.highlightModifiedTabs": true,
"editor.cursorSmoothCaretAnimation": true,
"php.executablePath": "C:\\xampp\\php\\php.exe",
"php.validate.executablePath": "C:\\xampp\\php\\php.exe",
"terminal.integrated.windowsEnableConpty": true,
"timing.hoverTimestamp.targetFormat": "YYYY/MM/DD hh:mm:ss",
"timing.customFormats": [
{
"format": "YYYY/MM/DD hh:mm:ss",
"description": "YYYY/MM/DD hh:mm:ss",
"detail": "YYYY/MM/DD hh:mm:ss"
}
],
"editor.fontLigatures": true,
    "editor.fontFamily": "Fira Code",
"editor.fontSize": 18,
"workbench.colorTheme": "Flat UI Custom",
"namespaceResolver.highlightOnOpen": true,
"namespaceResolver.showMessageOnStatusBar": true,
"namespaceResolver.sortOnSave": true,
"php-docblocker.qualifyClassNames": true,
"php-docblocker.useShortNames": true,
"namespaceResolver.sortAlphabetically": true,
"terminal.explorerKind": "external",
"terminal.external.linuxExec": "C:\\Users\\agustin.ortu\\AppData\\Local\\hyper\\hyper.exe",
"terminal.external.windowsExec": "C:\\Users\\agustin.ortu\\AppData\\Local\\hyper\\hyper.exe"
}
{
"Vue Boilerplate": {
"prefix": "vue",
"body": [
"<!DOCTYPE html>",
"<html>",
"<head>",
" <title>Vue</title>",
" <meta charset=\"utf-8\"/>",
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">",
"</head>",
"<body>",
" <div id=\"app\">",
" ${1}",
" </div>",
"",
" <script src=\"https://unpkg.com/vue@2.5.16/dist/vue.js\"></script>",
"",
" <script>",
" const app = new Vue({",
" el: \"#app\",",
"",
" data: {",
" ${2}",
" },",
"",
" methods: {",
" ${3}",
" }",
" });",
" </script>",
"</body>",
"</html>"
],
"description": "Vue Boilerplate"
}
}
{
"test": {
"prefix": "it",
"body": [
"@Test",
"public void it_$1() {",
" $2",
" Assert.assertEquals($3, $4);",
"}"
]
}
}
{
"JS Console Log": {
"prefix": "c",
"body": [
"console.log(${1:''})"
],
"description": "JS Console Log"
}
}
{
"PHP Unit Test Class": {
"prefix": "tc",
"body": [
"namespace Tests\\Unit;",
"",
"use Tests\\Unit\\TestCase;",
"",
"class $1Test extends TestCase",
"{",
" /** @test */",
" public function it_$2()",
" {",
" $3",
" }",
"}"
],
"description": "PHP Unit Test Class"
},
"PHP Feature Test Class": {
"prefix": "ftc",
"body": [
"namespace Tests\\Feature;",
"",
"use Tests\\Feature\\FeatureTest;",
"",
"class $1Test extends FeatureTest",
"{",
" /** @test */",
" public function it_$2()",
" {",
" $3",
" }",
"}"
],
"description": "PHP Feature Test Class"
},
"PHP Integration Test Class": {
"prefix": "itc",
"body": [
"namespace Tests\\AppBundle\\Integration;",
"",
"class $1Test extends IntegrationTest",
"{",
" /** @test */",
" public function it_$2()",
" {",
" $3",
" }",
"}"
],
"description": "PHP Feature Test Class"
},
"Scaffold RESTful Controller": {
"prefix": "sctrller",
"body": [
"namespace App\\Http\\Controllers;",
"",
"use App\\\\$1;",
"use Illuminate\\Http\\Request;",
"use Illuminate\\Http\\Response;",
"",
"/**",
" * Handles requests related to the $1 model.",
" */",
"class $1sController extends Controller",
"{",
" /**",
" * Display a listing of $2",
" *",
" * @return \\Illuminate\\Http\\Response",
" */",
" public function index()",
" {",
" $$2s = $1::all();",
"",
" return view('$2s/index', compact('$2s'));",
" }",
"",
" /**",
" * Show the form for creating a new $1",
" *",
" * @return \\Illuminate\\Http\\Response",
" */",
" public function create()",
" {",
" return view('$2s/create');",
" }",
"",
" /**",
" * Store a newly created $1 in storage.",
" *",
" * @param \\Illuminate\\Http\\Request $request",
" * @return \\Illuminate\\Http\\Response",
" */",
" public function store(Request $$request)",
" {",
" $$this->validateRequest($$request);",
" $1::create($$request->all());",
"",
" return redirect()->route('$2s.index');",
" }",
"",
" /**",
" * Display the specified $1",
" *",
" * @param $1 $$2",
" * @return \\Illuminate\\Http\\Response",
" */",
" public function show($1 $$2)",
" {",
" return view('$2s/show', compact('$2'));",
" }",
"",
" /**",
" * Show the form for editing the specified $1",
" *",
" * @param $1 $$2",
" * @return \\Illuminate\\Http\\Response",
" */",
" public function edit($1 $$2)",
" {",
" return view('$2s/edit', compact('$2'));",
" }",
"",
" /**",
" * Update the specified resource in storage.",
" *",
" * @param \\Illuminate\\Http\\Request $request",
" * @param $1 $$2",
" * @return \\Illuminate\\Http\\Response",
" */",
" public function update(Request $$request, $1 $$2)",
" {",
" $$this->validateRequest($$request);",
" $$2->update($$request->all())",
"",
" return redirect()->route('$2s.index')",
" }",
"",
" /**",
" * Remove the specified $1 from storage.",
" *",
" * @param int $id",
" * @return \\Illuminate\\Http\\Response",
" */",
" public function destroy($$id)",
" {",
" $1::destroy($$id);",
"",
" return redirect()->route('$2s.index');",
" }",
"",
" /**",
" * Runs the validation rules agains the given Request",
" *",
" * @param \\Illuminate\\Http\\Request $request",
" * @return void",
" */",
" protected function validateRequest(Request $$request)",
" {",
" return $$this->validate($$request, $$this->getValidationRules());",
" }",
"",
" /**",
" * Returns an array with the rules that the validator should use when executed",
" *",
" * @return array",
" */",
" protected function getValidationRules()",
" {",
" return [",
" '$3' => '$3',",
" ];",
" }",
"}"
],
"description": "Scaffold RESTful Controller"
},
"PHP Laravel Model Factory": {
"prefix": "fac",
"body": [
"\\$factory->define(App\\\\$1::class, function (Faker\\Generator \\$faker) {",
" return [",
" '$2' => \\$faker->$3,",
" ];",
"});"
],
"description": "PHP Laravel Model Factory"
},
"PHP public method …": {
"prefix": "fun",
"body": [
"public function ${2:functionName}(${3})",
"{",
"\t${0:# code...}",
"}"
],
"description": "Public Method"
},
"PHP static public method …": {
"prefix": "sfun",
"body": [
"public static function ${2:functionName}(${3})",
"{",
"\t${0:# code...}",
"}"
],
"description": "Public Method"
},
"PHP protected method …": {
"prefix": "pfun",
"body": [
"protected function ${2:FunctionName}(${3})",
"{",
"\t${0:# code...}",
"}"
],
"description": "Protected Method"
},
"PHP static protected method …": {
"prefix": "spfun",
"body": [
"protected static function ${2:FunctionName}(${3})",
"{",
"\t${0:# code...}",
"}"
],
"description": "Protected Method"
},
"PHP private method …": {
"prefix": "pvfun",
"body": [
"private function ${2:FunctionName}(${3})",
"{",
"\t${0:# code...}",
"}"
],
"description": "Private Method"
},
"PHP Test Case": {
"prefix": "it",
"body": [
"/** @test */",
"public function it_$1()",
"{",
" $2",
"}"
]
},
"class …": {
"prefix": "class",
"body": [
"class ${1:ClassName} ${2:extends ${3:AnotherClass}} ${4:implements ${5:Interface}}",
"{",
"\t$0",
"}",
""
],
"description": "Class definition"
},
"function __construct": {
"prefix": "con",
"body": [
"${1:public} function __construct(${2:${3:Type} $${4:var}${5: = ${6:null}}}) {",
"\t\\$this->${4:var} = $${4:var};$0",
"}"
]
},
"PHPDoc param …": {
"prefix": "param",
"body": [
"* @param ${1:Type} ${2:var} ${3:Description}$0"
],
"description": "Paramater documentation"
},
"trait …": {
"prefix": "trait",
"body": [
"/**",
" * $1",
" */",
"trait ${2:TraitName}",
"{",
"\t$0",
"}",
""
],
"description": "Trait"
},
"do … while …": {
"prefix": "do",
"body": [
"do {",
"\t${0:# code...}",
"} while (${1:$${2:a} <= ${3:10}});"
],
"description": "Do-While loop"
},
"while …": {
"prefix": "while",
"body": [
"while (${1:$${2:a} <= ${3:10}}) {",
"\t${0:# code...}",
"}"
],
"description": "While-loop"
},
"if …": {
"prefix": "if",
"body": [
"if (${1:condition}) {",
"\t${0:# code...}",
"}"
],
"description": "If block"
},
"if … else …": {
"prefix": "ifelse",
"body": [
"if (${1:condition}) {",
"\t${2:# code...}",
"} else {",
"\t${3:# code...}",
"}",
"$0"
],
"description": "If Else block"
},
"$… = ( … ) ? … : …": {
"prefix": "if?",
"body": "$${1:retVal} = (${2:condition}) ? ${3:a} : ${4:b} ;",
"description": "Ternary conditional assignment"
},
"else …": {
"prefix": "else",
"body": [
"else {",
"\t${0:# code...}",
"}"
],
"description": "Else block"
},
"elseif …": {
"prefix": "elseif",
"body": [
"elseif (${1:condition}) {",
"\t${0:# code...}",
"}"
],
"description": "Elseif block"
},
"for …": {
"prefix": "for",
"body": [
"for ($${1:i}=${2:0}; $${1:i} < $3; $${1:i}++) { ",
"\t${0:# code...}",
"}"
],
"description": "For-loop"
},
"foreach …": {
"prefix": "foreach",
"body": [
"foreach ($${1:variable} as $${2:key} ${3:=> $${4:value}}) {",
"\t${0:# code...}",
"}"
],
"description": "Foreach loop"
},
"$this->…": {
"prefix": "this",
"body": "\\$this->$0;",
"description": "$this->..."
},
"Throw Exception": {
"prefix": "throw",
"body": [
"throw new $1Exception(${2:\"${3:Error Processing Request}\"}${4:, ${5:1}});",
"$0"
],
"description": "Throw exception"
},
"Region Start": {
"prefix": "#region",
"body": [
"#region"
],
"description": "Folding Region Start"
},
"Region End": {
"prefix": "#endregion",
"body": [
"#endregion"
],
"description": "Folding Region End"
}
}
{
"TestSuite": {
"prefix": "ts",
"body": [
"require 'minitest/autorun'",
"require 'minitest/unit'",
"",
"class Test$1 < MiniTest::Test",
" def test_$2",
" expected = $3",
" actual = $4",
" assert_equal expected, actual",
" end",
"end"
]
},
"TestCase": {
"prefix": "tc",
"body": [
"def test_$2",
" expected = $3",
" actual = $4",
" assert_equal expected, actual",
"end"
]
},
"Spec": {
"prefix": "it",
"body": [
"test \"it $1\" do",
" $2",
" $3",
" assert $4",
"end"
]
}
}
{"version":"7.19.0","status":2,"welcomeShown":true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment