Skip to content

Instantly share code, notes, and snippets.

@banqhsia
Last active April 18, 2022 04:10
Show Gist options
  • Save banqhsia/627fbd687bbf288daeb93b656fb80f2e to your computer and use it in GitHub Desktop.
Save banqhsia/627fbd687bbf288daeb93b656fb80f2e to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-04-18T04:09:59.118Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "84a37ccf-d242-41e2-b631-93016a3882df",
"publisherId": "sashaweiss.block-travel",
"publisherDisplayName": "sashaweiss"
},
"name": "block-travel",
"publisher": "sashaweiss",
"version": "0.0.2"
},
{
"metadata": {
"id": "b689fcc8-d494-4dbf-a228-2c694a578afc",
"publisherId": "alefragnani.Bookmarks",
"publisherDisplayName": "alefragnani"
},
"name": "Bookmarks",
"publisher": "alefragnani",
"version": "13.2.2"
},
{
"metadata": {
"id": "2aa040bf-c73a-455d-8946-5c6cc83b8019",
"publisherId": "wmaurer.change-case",
"publisherDisplayName": "wmaurer"
},
"name": "change-case",
"publisher": "wmaurer",
"version": "1.0.0"
},
{
"metadata": {
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3",
"publisherId": "formulahendry.code-runner",
"publisherDisplayName": "formulahendry"
},
"name": "code-runner",
"publisher": "formulahendry",
"version": "0.11.7"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "a59a33cb-9f43-4f1a-890f-5d400cb82389",
"publisherId": "CodeStream.codestream",
"publisherDisplayName": "CodeStream"
},
"name": "codestream",
"publisher": "CodeStream",
"version": "12.15.0"
},
{
"metadata": {
"id": "10b856c1-4a00-43e2-8eae-53fee69302bb",
"publisherId": "uriberman.colonizer",
"publisherDisplayName": "uriberman"
},
"name": "colonizer",
"publisher": "uriberman",
"version": "0.8.0"
},
{
"metadata": {
"id": "0f9fd6dc-5273-458d-9d1c-b854f8ac5518",
"publisherId": "lafe.contextualduplicate",
"publisherDisplayName": "lafe"
},
"name": "contextualduplicate",
"publisher": "lafe",
"version": "0.2.0"
},
{
"metadata": {
"id": "23c4aeee-f844-43cd-b53e-1113e483f1a6",
"publisherId": "GitHub.copilot",
"publisherDisplayName": "GitHub"
},
"name": "copilot",
"publisher": "GitHub",
"version": "1.12.5517"
},
{
"metadata": {
"id": "e0d4bbc5-a0d6-44c5-a446-fb396792be2e",
"publisherId": "ezforo.copy-relative-path-and-line-numbers",
"publisherDisplayName": "ezforo"
},
"name": "copy-relative-path-and-line-numbers",
"publisher": "ezforo",
"version": "0.3.1"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "11.6.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": "6c2f1801-1e7f-45b2-9b5c-7782f1e076e8",
"publisherId": "ms-toolsai.jupyter",
"publisherDisplayName": "ms-toolsai"
},
"name": "jupyter",
"publisher": "ms-toolsai",
"version": "2021.8.1054968649"
},
{
"metadata": {
"id": "8a3855a5-f258-48ee-87f9-fa4f7a0875b1",
"publisherId": "ryannaddy.laravel-artisan",
"publisherDisplayName": "ryannaddy"
},
"name": "laravel-artisan",
"publisher": "ryannaddy",
"version": "0.0.28"
},
{
"metadata": {
"id": "f8a1bc85-dce8-4e51-a623-a40bde56fc8b",
"publisherId": "stef-k.laravel-goto-controller",
"publisherDisplayName": "stef-k"
},
"name": "laravel-goto-controller",
"publisher": "stef-k",
"version": "0.0.15"
},
{
"metadata": {
"id": "79afa437-682e-4fa2-a4fd-87844832a1dc",
"publisherId": "ryu1kn.partial-diff",
"publisherDisplayName": "ryu1kn"
},
"name": "partial-diff",
"publisher": "ryu1kn",
"version": "1.4.3"
},
{
"metadata": {
"id": "b06b65b2-6ea9-4045-b166-54aa63205261",
"publisherId": "junstyle.php-cs-fixer",
"publisherDisplayName": "junstyle"
},
"name": "php-cs-fixer",
"publisher": "junstyle",
"version": "0.2.10"
},
{
"metadata": {
"id": "044b4b31-2969-4af3-895d-855433b8b46d",
"publisherId": "felixfbecker.php-debug",
"publisherDisplayName": "felixfbecker"
},
"name": "php-debug",
"publisher": "felixfbecker",
"version": "1.22.0"
},
{
"metadata": {
"id": "ca0094fa-0dc7-4847-ae5d-879442c099ca",
"publisherId": "neilbrayfield.php-docblocker",
"publisherDisplayName": "neilbrayfield"
},
"name": "php-docblocker",
"publisher": "neilbrayfield",
"version": "2.5.0"
},
{
"metadata": {
"id": "c6e4d07c-89ae-4153-a5fc-c4169e7d94f3",
"publisherId": "linyang95.phpmd",
"publisherDisplayName": "linyang95"
},
"name": "phpmd",
"publisher": "linyang95",
"version": "1.2.1"
},
{
"metadata": {
"id": "f6c2c922-7a4d-4a60-aa8c-d7a41042f960",
"publisherId": "phiter.phpstorm-snippets",
"publisherDisplayName": "phiter"
},
"name": "phpstorm-snippets",
"publisher": "phiter",
"version": "1.1.2"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2021.8.1159798656"
},
{
"metadata": {
"id": "607fd052-be03-4363-b657-2bd62b83d28a",
"publisherId": "ms-vscode-remote.remote-ssh",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh",
"publisher": "ms-vscode-remote",
"version": "0.66.0"
},
{
"metadata": {
"id": "bfeaf631-bcff-4908-93ed-fda4ef9a0c5c",
"publisherId": "ms-vscode-remote.remote-ssh-edit",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh-edit",
"publisher": "ms-vscode-remote",
"version": "0.70.0"
},
{
"metadata": {
"id": "6195417d-6936-44ec-ad8e-f3e80e2b5c3a",
"publisherId": "TomiTurtiainen.rf-intellisense",
"publisherDisplayName": "TomiTurtiainen"
},
"name": "rf-intellisense",
"publisher": "TomiTurtiainen",
"version": "2.8.0"
},
{
"metadata": {
"id": "ed3575fb-5812-4a43-9efb-c19649137420",
"publisherId": "liximomo.sftp",
"publisherDisplayName": "liximomo"
},
"name": "sftp",
"publisher": "liximomo",
"version": "1.12.10"
},
{
"metadata": {
"id": "cb9cc98b-7140-4f13-b993-1e26c4a7bd42",
"publisherId": "Arjun.swagger-viewer",
"publisherDisplayName": "Arjun"
},
"name": "swagger-viewer",
"publisher": "Arjun",
"version": "3.1.2"
},
{
"metadata": {
"id": "2f5dd8cb-d251-4d70-abfe-ddebcb077483",
"publisherId": "octref.vetur",
"publisherDisplayName": "octref"
},
"name": "vetur",
"publisher": "octref",
"version": "0.35.0"
},
{
"metadata": {
"id": "687fb9d6-ecd8-4aa4-a4f6-d285fad5c8d9",
"publisherId": "pejmannikram.vscode-auto-scroll",
"publisherDisplayName": "pejmannikram"
},
"name": "vscode-auto-scroll",
"publisher": "pejmannikram",
"version": "1.0.4"
},
{
"metadata": {
"id": "2f0eaac2-070b-4dc7-9b23-8dd4c970c11c",
"publisherId": "redhat.vscode-commons",
"publisherDisplayName": "redhat"
},
"name": "vscode-commons",
"publisher": "redhat",
"version": "0.0.6"
},
{
"metadata": {
"id": "55ef6448-487b-49a0-a66e-4d2d9bb82229",
"publisherId": "GraphQL.vscode-graphql",
"publisherDisplayName": "GraphQL"
},
"name": "vscode-graphql",
"publisher": "GraphQL",
"version": "0.3.41"
},
{
"metadata": {
"id": "ffda6552-0ad5-431b-a4fa-0905a7e4f3f0",
"publisherId": "bmewburn.vscode-intelephense-client",
"publisherDisplayName": "bmewburn"
},
"name": "vscode-intelephense-client",
"publisher": "bmewburn",
"version": "1.8.2"
},
{
"metadata": {
"id": "951c33b7-6ec9-4351-8a17-ededc09c997f",
"publisherId": "nickdemayo.vscode-json-editor",
"publisherDisplayName": "nickdemayo"
},
"name": "vscode-json-editor",
"publisher": "nickdemayo",
"version": "0.3.0"
},
{
"metadata": {
"id": "8130e01f-ac60-4803-ab86-f05469dd7b4d",
"publisherId": "kokororin.vscode-phpfmt",
"publisherDisplayName": "kokororin"
},
"name": "vscode-phpfmt",
"publisher": "kokororin",
"version": "1.0.31"
},
{
"metadata": {
"id": "364d2426-116a-433a-a5d8-a5098dc3afbd",
"publisherId": "ms-python.vscode-pylance",
"publisherDisplayName": "ms-python"
},
"name": "vscode-pylance",
"publisher": "ms-python",
"version": "2022.1.3"
},
{
"metadata": {
"id": "ac70a31d-d9ab-417b-b259-baf7cd9d6cb0",
"publisherId": "adpyke.vscode-sql-formatter",
"publisherDisplayName": "adpyke"
},
"name": "vscode-sql-formatter",
"publisher": "adpyke",
"version": "1.4.4"
},
{
"metadata": {
"id": "1ec6eb10-6b49-418a-95d3-34d9a54e3101",
"publisherId": "richie5um2.vscode-statusbar-json-path",
"publisherDisplayName": "richie5um2"
},
"name": "vscode-statusbar-json-path",
"publisher": "richie5um2",
"version": "1.4.5"
},
{
"metadata": {
"id": "2061917f-f76a-458a-8da9-f162de22b97e",
"publisherId": "redhat.vscode-yaml",
"publisherDisplayName": "redhat"
},
"name": "vscode-yaml",
"publisher": "redhat",
"version": "1.6.0"
},
{
"metadata": {
"id": "f0a0f9ee-cbb9-4826-b7fb-adddb46d456c",
"publisherId": "benawad.VSinder",
"publisherDisplayName": "benawad"
},
"name": "VSinder",
"publisher": "benawad",
"version": "1.19.0"
},
{
"metadata": {
"id": "0cb81da2-1880-4755-9995-0ae9cc728e20",
"publisherId": "DotJoshJohnson.xml",
"publisherDisplayName": "DotJoshJohnson"
},
"name": "xml",
"publisher": "DotJoshJohnson",
"version": "2.5.1"
}
]
{"owner":"redhat.vscode-yaml","sessionId":"cad9b7fa-111d-43f8-8d15-2eff205f51c01632885105258","time":1632885110638}
{"owner":"redhat.vscode-yaml","sessionId":"7b9ceb58-16d9-45cc-8cc7-21b5f4e3aa661649404686300","time":1649404695472}
// 將您的按鍵組合放入此檔案中以覆寫預設值
[
{
"key": "cmd+t",
"command": "workbench.action.quickOpen"
},
{
"key": "ctrl+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "cmd+r",
"command": "workbench.action.gotoSymbol"
},
{
"key": "ctrl+shift+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "ctrl+k ctrl+f",
"command": "editor.action.formatSelection",
"when": "editorHasSelection && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+f",
"command": "-editor.action.formatSelection",
"when": "editorHasSelection && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+k 9",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+i",
"command": "-editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "ctrl+k ctrl+9",
"command": "-editor.unfoldAllMarkerRegions",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+up",
"command": "bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+l",
"command": "-bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+down",
"command": "bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+j",
"command": "-bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "cmd+e",
"command": "workbench.action.showAllSymbols"
},
{
"key": "ctrl+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "shift+cmd+i",
"command": "phpfmt.format"
},
{
"key": "ctrl+shift+i",
"command": "-editor.action.formatDocument",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+y",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+g",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+d",
"command": "lafe.duplicateCode"
},
{
"key": "ctrl+k d",
"command": "-lafe.duplicateCode"
},
{
"key": ";",
"command": "extension.colonizeAndBreakLine"
},
{
"key": "alt+;",
"command": "-extension.colonizeAndBreakLine"
},
{
"key": "alt+cmd+g",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "f12",
"command": "-editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+k cmd+s",
"command": "workbench.action.files.saveWithoutFormatting"
},
{
"key": "cmd+k s",
"command": "-workbench.action.files.saveWithoutFormatting"
},
{
"key": "shift+cmd+r",
"command": "references-view.find",
"when": "editorHasReferenceProvider"
},
{
"key": "shift+alt+f12",
"command": "-references-view.find",
"when": "editorHasReferenceProvider"
},
{
"key": "cmd+k cmd+l",
"command": "sftp.sync.localToRemote"
},
{
"key": "f6",
"command": "workbench.action.navigateForward"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward"
},
{
"key": "f5",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack"
},
{
"key": "cmd+right",
"command": "-cursorEnd",
"when": "textInputFocus"
},
{
"key": "cmd+left",
"command": "-cursorHome",
"when": "textInputFocus"
},
{
"key": "alt+cmd+right",
"command": "workbench.action.nextEditor"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.nextEditor"
},
{
"key": "alt+cmd+left",
"command": "workbench.action.previousEditor"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.previousEditor"
},
{
"key": "cmd+right",
"command": "cursorLineEnd",
"when": "textInputFocus"
},
{
"key": "ctrl+e",
"command": "-cursorLineEnd",
"when": "textInputFocus"
},
{
"key": "cmd+left",
"command": "cursorLineStart",
"when": "textInputFocus"
},
{
"key": "ctrl+a",
"command": "-cursorLineStart",
"when": "textInputFocus"
}
]
{
"git.ignoreMissingGitWarning": true,
"editor.fontFamily": "Consolas, 'Courier', 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
"editor.fontSize": 18,
"gitblame.statusBarMessageNoCommit": "Untracked",
"html.format.wrapLineLength": 0,
"gitblame.infoMessageFormat": "${commit.hash}\n${commit.summary}",
"phpfmt.yoda": true,
"php-docblocker.useShortNames": true,
"phpfmt.smart_linebreak_after_curly": true,
"files.trimTrailingWhitespace": true,
"phpfmt.passes": [
// "SpaceAroundControlStructures",
"StripSpaceWithinControlStructures",
// "SpaceAfterExclamationMark",
"NewLineBeforeReturn",
"SpaceBetweenMethods",
"WrongConstructorName",
"ReplaceBooleanAndOr",
// "SortUseNameSpace",
// "ReplaceIsNull",
"UpgradeToPreg",
"ShortArray",
],
"gitlens.currentLine.format": " // ${author}, ${agoOrDate} • ${message} • ${id}",
"gitlens.gitExplorer.files.layout": "auto",
"gitlens.advanced.fileHistoryFollowsRenames": true,
"todohighlight.keywordsPattern": "(TODO|NOTICE|TEMP):",
"todohighlight.isEnable": true,
"workbench.colorCustomizations": {
"editor.lineHighlightBackground": "#FFFFFF11"
},
"gitlens.historyExplorer.location": "scm",
"gitlens.codeLens.enabled": false,
"terminal.integrated.fontFamily": "'Roboto Mono for Powerline'",
"terminal.integrated.cursorStyle": "line",
"phpcs.executablePath": "/Users/benhsia/.composer/vendor/bin/phpcs",
"workbench.startupEditor": "newUntitledFile",
"breadcrumbs.enabled": true,
"editor.snippetSuggestions": "inline",
"editor.suggest.snippetsPreventQuickSuggestions": false,
"window.title": "${dirty}${activeEditorShort}${separator}${rootName}${separator}",
"[php]": {
"editor.formatOnSave": false, //sets to true
"editor.defaultFormatter": "kokororin.vscode-phpfmt"
},
"[json]": {
"editor.formatOnSave": true
},
"editor.rulers": [
80,
120
],
"php.suggest.basic": false,
"files.autoSave": "off",
"emmet.showAbbreviationSuggestions": false,
"emmet.showExpandedAbbreviation": "never",
"gitlens.views.repositories.files.layout": "auto",
"gitlens.views.fileHistory.location": "scm",
"gitlens.views.lineHistory.location": "scm",
"phpmd.validate.rulesetsFile": "/Users/ben/code/htdocs/efshop_api/phpmd.xml",
"phpmd.enabled": false,
"workbench.editor.highlightModifiedTabs": true,
"sync.gist": "627fbd687bbf288daeb93b656fb80f2e",
"cSpell.userWords": [
"Epaper",
"abtest",
"awoo",
"displayname",
"subcode",
"testdox"
],
"cSpell.enabledLanguageIds": [
"asciidoc",
"c",
"cpp",
"csharp",
"css",
"git-commit",
"go",
"handlebars",
"html",
"jade",
"java",
"javascript",
"javascriptreact",
"json",
"jsonc",
"latex",
"less",
"markdown",
"php",
"plaintext",
"pug",
"python",
"restructuredtext",
"rust",
"scala",
"scss",
"text",
"typescript",
"typescriptreact",
"yaml",
"yml"
],
"emmet.triggerExpansionOnTab": true,
"editor.fontWeight": "300",
"phpcs.enable": false,
"gitlens.gitCommands.closeOnFocusOut": true,
"workbench.editor.revealIfOpen": true,
"phpfmt.php_bin": "/usr/bin/php",
"editor.renderWhitespace": "none",
"git.ignoreLegacyWarning": true,
"php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar",
"php-cs-fixer.lastDownload": 1632463012500,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": true
},
"gitlens.statusBar.reduceFlicker": true,
"gitlens.statusBar.enabled": false,
"workbench.editor.enablePreview": true,
"update.mode": "manual",
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"codestream.email": "[email protected]",
"editor.inlineSuggest.enabled": true,
"github.copilot.enable": {
"*": true,
"yaml": false,
"plaintext": true,
"markdown": false,
"php": true
},
"editor.minimap.enabled": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\\\|;:'\\\",.<>/?",
"diffEditor.renderSideBySide": false,
"editor.renderControlCharacters": true,
"terminal.integrated.env.osx": {
"FIG_NEW_SESSION": "1"
},
"editor.accessibilitySupport": "off",
}
{
/*
// Place your snippets for Laravel Blade here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"Angular Expression": {
"prefix": "Angular Expression",
"body": [
"{{ $1 }}"
],
"description": "{{ Expression }}"
},
"End of": {
"prefix": "End of HTML Comment",
"body": [
"<!-- END OF $1 -->"
],
"description": "<!-- END OF SOMETHING -->"
}
}
{
/*
// Place your snippets for HTML here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"Angular Expression": {
"prefix": "Angular Expression",
"body": [
"{{ $1 }}"
],
"description": "{{ Expression }}"
},
"End of": {
"prefix": "End of HTML Comment",
"body": [
"<!-- END OF $1 -->"
],
"description": "<!-- END OF SOMETHING -->"
}
}
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"Print to console": {
"prefix": "log",
"body": [
"console.log($1);"
],
"description": "Log output to console"
}
}
{
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"php": {
"prefix": "names",
"body": [
"namespace ${TM_DIRECTORY/.+\\/app\\/(.+)+/App\\${1}/};",
"",
"class ${TM_FILENAME_BASE}",
"{",
"\t$4",
"}",
"",
],
"description": "php tag"
},
"class": {
"prefix": "class",
"body": [
"${1:// phpcs:disable}",
"class ${TM_FILENAME_BASE}",
"{",
"\tpublic function __construct()",
"\t{",
"\t\t$2",
"\t}",
"",
"}",
"",
],
"description": "class declaration with filename"
},
"interface": {
"prefix": "interface",
"body": [
"interface ${TM_FILENAME_BASE}",
"{",
"\t$1",
"}",
],
"description": "interface declaration with filename"
},
"test case": {
"prefix": "testcase",
"body": [
"public function test_$1()",
"{",
"\t$2",
"}",
"",
],
"description": "Test Case"
},
"Class Property": {
"prefix": "ppp",
"body": [
"${1|private,public,protected|} \\$${2};",
],
"description": "insert class property"
},
"var dump": {
"prefix": "ddd",
"body": [
"var_dump(\\$$1);"
],
"description": "call var_dump()"
},
"dump+exit": {
"prefix": "dme",
"body": [
"dump(\\$$1); exit(1);"
],
"description": "dump() + exit()"
},
"print_r": {
"prefix": "ppr",
"body": [
"print_r(\\$$1);"
],
"description": "call print_r()"
},
"This assignment": {
"prefix": "thisassi",
"body": [
"\\$this->$1 = \\$$1;",
],
"description": "this var assignment"
},
"Variable": {
"prefix": "var",
"body": [
"\\$${TM_CURRENT_WORD} = $2;",
],
"description": "var assignment"
},
"$this->": {
"prefix": "this",
"body": [
"\\$this->",
],
"description": "PHP this object"
},
"Return": {
"prefix": "ret",
"body": [
"return ${1:\\$this}$2;",
],
"description": "Return this"
},
"implement": {
"prefix": "implements",
"body": [
"implements ",
],
"description": "class implement declaration"
},
"extends": {
"prefix": "extends",
"body": [
"extends ",
],
"description": "class extends declaration"
},
"$this->createMock()": {
"prefix": "cm",
"body": [
"\\$this->createMock($1);",
],
"description": "PHPUnit create mock"
},
"$this->createPartialMock()": {
"prefix": "cpm",
"body": [
"\\$this->createPartialMock($1, ['$2']);",
],
"description": "PHPUnit create mock"
},
"$this->getMockBuilder()": {
"prefix": "gmb",
"body": [
"\\$this->getMockBuilder($1)$2",
],
"description": "PHPUnit create mock"
},
"instanceof": {
"prefix": "instanceof",
"body": [
"instanceof $1",
],
"description": "instanceof"
},
"Get call stack": {
"prefix": "callstack",
"body": [
"debug_print_backtrace();",
],
"description": "print call stack"
},
"dump": {
"prefix": "dm",
"body": [
"dump(\\$$1);",
],
"description": "dump variable"
},
}
{
// Place your snippets for plaintext here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
{
// Place your snippets for smarty here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment