Skip to content

Instantly share code, notes, and snippets.

@butuzov
Last active Oct 4, 2021
Embed
What would you like to do?
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-04T14:04:06.810Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "0bfc03aa-70fb-4740-82a7-ca1043260d88",
"publisherId": "nicoespeon.abracadabra",
"publisherDisplayName": "nicoespeon"
},
"name": "abracadabra",
"publisher": "nicoespeon",
"version": "6.4.0"
},
{
"metadata": {
"id": "1b955451-e3c8-4d84-aad1-87cc1f9643ee",
"publisherId": "butuzov.acid",
"publisherDisplayName": "butuzov"
},
"name": "acid",
"publisher": "butuzov",
"version": "0.1.4"
},
{
"metadata": {
"id": "0a536459-8968-4c18-a052-cc505a9ea555",
"publisherId": "huntertran.auto-markdown-toc",
"publisherDisplayName": "huntertran"
},
"name": "auto-markdown-toc",
"publisher": "huntertran",
"version": "3.0.12"
},
{
"metadata": {
"id": "7a0110bb-231a-4598-aa1b-0769ea46d28b",
"publisherId": "aaron-bond.better-comments",
"publisherDisplayName": "aaron-bond"
},
"name": "better-comments",
"publisher": "aaron-bond",
"version": "2.1.0"
},
{
"metadata": {
"id": "464f4ac7-af65-4aa9-9907-4ba7fa419085",
"publisherId": "bungcip.better-toml",
"publisherDisplayName": "bungcip"
},
"name": "better-toml",
"publisher": "bungcip",
"version": "0.3.2"
},
{
"metadata": {
"id": "f35c86ba-03f0-4259-9eb9-326e33e39f90",
"publisherId": "ericadamski.carbon-now-sh",
"publisherDisplayName": "ericadamski"
},
"name": "carbon-now-sh",
"publisher": "ericadamski",
"version": "1.2.0"
},
{
"metadata": {
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3",
"publisherId": "formulahendry.code-runner",
"publisherDisplayName": "formulahendry"
},
"name": "code-runner",
"publisher": "formulahendry",
"version": "0.11.5"
},
{
"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": "f6dbd813-b0a0-42c1-90ea-10dde9d925a7",
"publisherId": "streetsidesoftware.code-spell-checker",
"publisherDisplayName": "streetsidesoftware"
},
"name": "code-spell-checker",
"publisher": "streetsidesoftware",
"version": "2.0.8"
},
{
"metadata": {
"id": "73840b45-43be-4f87-a177-5800f4df34bd",
"publisherId": "streetsidesoftware.code-spell-checker-ukrainian",
"publisherDisplayName": "streetsidesoftware"
},
"name": "code-spell-checker-ukrainian",
"publisher": "streetsidesoftware",
"version": "0.1.10"
},
{
"metadata": {
"id": "0f8bd812-5d52-4fff-bd1c-6b0a7ee9cad9",
"publisherId": "bierner.color-info",
"publisherDisplayName": "bierner"
},
"name": "color-info",
"publisher": "bierner",
"version": "0.7.0"
},
{
"metadata": {
"id": "6a95a3fd-3a5d-4326-b8ab-1b1653b1f183",
"publisherId": "serayuzgur.crates",
"publisherDisplayName": "serayuzgur"
},
"name": "crates",
"publisher": "serayuzgur",
"version": "0.5.9"
},
{
"metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "EditorConfig.EditorConfig",
"publisherDisplayName": "EditorConfig"
},
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.16.4"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "11.6.0"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "golang.go",
"publisherDisplayName": "golang"
},
"name": "go",
"publisher": "golang",
"version": "0.28.1"
},
{
"metadata": {
"id": "3b3d36c0-6af6-4ede-aaba-6f460423ddea",
"publisherId": "casualjim.gotemplate",
"publisherDisplayName": "casualjim"
},
"name": "gotemplate",
"publisher": "casualjim",
"version": "0.4.0"
},
{
"metadata": {
"id": "f2c8b652-2886-45ef-8bc0-c8d1ee8a0e9f",
"publisherId": "znck.grammarly",
"publisherDisplayName": "znck"
},
"name": "grammarly",
"publisher": "znck",
"version": "0.14.0"
},
{
"metadata": {
"id": "cc7d2112-5178-4472-8e0e-25dced95e7f0",
"publisherId": "ms-vscode.hexeditor",
"publisherDisplayName": "ms-vscode"
},
"name": "hexeditor",
"publisher": "ms-vscode",
"version": "1.8.2"
},
{
"metadata": {
"id": "c941a679-d500-46a8-b2a9-208063125901",
"publisherId": "wholroyd.jinja",
"publisherDisplayName": "wholroyd"
},
"name": "jinja",
"publisher": "wholroyd",
"version": "0.0.8"
},
{
"metadata": {
"id": "6c2f1801-1e7f-45b2-9b5c-7782f1e076e8",
"publisherId": "ms-toolsai.jupyter",
"publisherDisplayName": "ms-toolsai"
},
"name": "jupyter",
"publisher": "ms-toolsai",
"version": "2021.8.2041215044"
},
{
"metadata": {
"id": "9f6dc8db-620c-4844-b8c5-e74914f1be27",
"publisherId": "ms-toolsai.jupyter-keymap",
"publisherDisplayName": "ms-toolsai"
},
"name": "jupyter-keymap",
"publisher": "ms-toolsai",
"version": "1.0.0"
},
{
"metadata": {
"id": "6edd1f7d-7d66-42ee-a32f-62c990bcfa19",
"publisherId": "torn4dom4n.latex-support",
"publisherDisplayName": "torn4dom4n"
},
"name": "latex-support",
"publisher": "torn4dom4n",
"version": "3.9.0"
},
{
"metadata": {
"id": "1f5eb737-5496-44a3-a8a1-36a85eee4979",
"publisherId": "magicstack.MagicPython",
"publisherDisplayName": "magicstack"
},
"name": "MagicPython",
"publisher": "magicstack",
"version": "1.1.0"
},
{
"metadata": {
"id": "f8d0ffc4-66bb-4a9c-8149-ef8f043691a1",
"publisherId": "bierner.markdown-mermaid",
"publisherDisplayName": "bierner"
},
"name": "markdown-mermaid",
"publisher": "bierner",
"version": "1.12.1"
},
{
"metadata": {
"id": "f015bc3c-a098-4245-8765-615e002e09ab",
"publisherId": "yzane.markdown-pdf",
"publisherDisplayName": "yzane"
},
"name": "markdown-pdf",
"publisher": "yzane",
"version": "1.4.4"
},
{
"metadata": {
"id": "5cbdf58a-694a-4aba-af08-61d00842eb03",
"publisherId": "bierner.markdown-preview-github-styles",
"publisherDisplayName": "bierner"
},
"name": "markdown-preview-github-styles",
"publisher": "bierner",
"version": "0.2.0"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "4.10.0"
},
{
"metadata": {
"id": "1766b3b1-32a4-4d6c-b7b4-6d72871ebd21",
"publisherId": "Equinusocio.moxer-icons",
"publisherDisplayName": "Equinusocio"
},
"name": "moxer-icons",
"publisher": "Equinusocio",
"version": "5.8.0"
},
{
"metadata": {
"id": "a92437f6-75af-47b2-b3e0-99764308b4be",
"publisherId": "ryuta46.multi-command",
"publisherDisplayName": "ryuta46"
},
"name": "multi-command",
"publisher": "ryuta46",
"version": "1.5.1"
},
{
"metadata": {
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86",
"publisherId": "christian-kohler.path-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "path-intellisense",
"publisher": "christian-kohler",
"version": "2.4.0"
},
{
"metadata": {
"id": "4386e6f6-ec10-4463-9d23-c24278718947",
"publisherId": "tomoki1207.pdf",
"publisherDisplayName": "tomoki1207"
},
"name": "pdf",
"publisher": "tomoki1207",
"version": "1.1.0"
},
{
"metadata": {
"id": "ca0094fa-0dc7-4847-ae5d-879442c099ca",
"publisherId": "neilbrayfield.php-docblocker",
"publisherDisplayName": "neilbrayfield"
},
"name": "php-docblocker",
"publisher": "neilbrayfield",
"version": "2.6.0"
},
{
"metadata": {
"id": "7ec14729-6395-434d-bcf5-6d61b5e3ca8e",
"publisherId": "wongjn.php-sniffer",
"publisherDisplayName": "wongjn"
},
"name": "php-sniffer",
"publisher": "wongjn",
"version": "1.3.0"
},
{
"metadata": {
"id": "d80b9a94-f4a6-4e39-bc42-62212e365682",
"publisherId": "pnp.polacode",
"publisherDisplayName": "pnp"
},
"name": "polacode",
"publisher": "pnp",
"version": "0.3.4"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "9.0.0"
},
{
"metadata": {
"id": "1b747f06-3789-4ebd-ac99-f1fe430c3347",
"publisherId": "alefragnani.project-manager",
"publisherDisplayName": "alefragnani"
},
"name": "project-manager",
"publisher": "alefragnani",
"version": "12.4.0"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2021.9.1246542782"
},
{
"metadata": {
"id": "154e2314-e703-4e14-b2d8-c1405a2bc370",
"publisherId": "Goopware.raythis",
"publisherDisplayName": "Goopware"
},
"name": "raythis",
"publisher": "Goopware",
"version": "1.1.0"
},
{
"metadata": {
"id": "93ce222b-5f6f-49b7-9ab1-a0463c6238df",
"publisherId": "ms-vscode-remote.remote-containers",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-containers",
"publisher": "ms-vscode-remote",
"version": "0.194.3"
},
{
"metadata": {
"id": "fc7d7e85-2e58-4c1c-97a3-2172ed9a77cd",
"publisherId": "GitHub.remotehub",
"publisherDisplayName": "GitHub"
},
"name": "remotehub",
"publisher": "GitHub",
"version": "0.14.0"
},
{
"metadata": {
"id": "570e6089-b871-41df-9cf4-a723cb34ef01",
"publisherId": "rust-lang.rust",
"publisherDisplayName": "rust-lang"
},
"name": "rust",
"publisher": "rust-lang",
"version": "0.7.8"
},
{
"metadata": {
"id": "235e8b64-5222-49db-978c-cb45e727cd14",
"publisherId": "dustypomerleau.rust-syntax",
"publisherDisplayName": "dustypomerleau"
},
"name": "rust-syntax",
"publisher": "dustypomerleau",
"version": "0.6.0"
},
{
"metadata": {
"id": "6faf9533-e655-435d-8157-13d5e285d271",
"publisherId": "sourcegraph.sourcegraph",
"publisherDisplayName": "sourcegraph"
},
"name": "sourcegraph",
"publisher": "sourcegraph",
"version": "1.4.0"
},
{
"metadata": {
"id": "cb9cc98b-7140-4f13-b993-1e26c4a7bd42",
"publisherId": "Arjun.swagger-viewer",
"publisherDisplayName": "Arjun"
},
"name": "swagger-viewer",
"publisher": "Arjun",
"version": "3.1.2"
},
{
"metadata": {
"id": "47210ec2-0324-4cbb-9523-9dff02a5f9ec",
"publisherId": "ms-vscode.test-adapter-converter",
"publisherDisplayName": "ms-vscode"
},
"name": "test-adapter-converter",
"publisher": "ms-vscode",
"version": "0.1.2"
},
{
"metadata": {
"id": "261cac81-cd7b-4555-bb41-0c2d2bcd3e70",
"publisherId": "Gruntfuggly.todo-tree",
"publisherDisplayName": "Gruntfuggly"
},
"name": "todo-tree",
"publisher": "Gruntfuggly",
"version": "0.0.214"
},
{
"metadata": {
"id": "893d887a-97ea-40e6-ae20-860eb6ad582e",
"publisherId": "bbenoist.vagrant",
"publisherDisplayName": "bbenoist"
},
"name": "vagrant",
"publisher": "bbenoist",
"version": "0.5.0"
},
{
"metadata": {
"id": "2f0eaac2-070b-4dc7-9b23-8dd4c970c11c",
"publisherId": "redhat.vscode-commons",
"publisherDisplayName": "redhat"
},
"name": "vscode-commons",
"publisher": "redhat",
"version": "0.0.6"
},
{
"metadata": {
"id": "4fedf6ae-1b56-4726-9f7f-e9592a6d4804",
"publisherId": "fabiospampinato.vscode-diff",
"publisherDisplayName": "fabiospampinato"
},
"name": "vscode-diff",
"publisher": "fabiospampinato",
"version": "1.4.2"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "ms-azuretools.vscode-docker",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "1.17.0"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "2.1.25"
},
{
"metadata": {
"id": "9cd61f2e-3456-4377-be02-6b2662e172ea",
"publisherId": "onsi.vscode-ginkgo",
"publisherDisplayName": "onsi"
},
"name": "vscode-ginkgo",
"publisher": "onsi",
"version": "0.0.1"
},
{
"metadata": {
"id": "75dba0f9-d5c5-4902-99c4-cd3d60ec7147",
"publisherId": "42Crunch.vscode-openapi",
"publisherDisplayName": "42Crunch"
},
"name": "vscode-openapi",
"publisher": "42Crunch",
"version": "4.6.3"
},
{
"metadata": {
"id": "1d3d1fb2-0d8f-47ed-bfce-990b8ddfc9d8",
"publisherId": "zxh404.vscode-proto3",
"publisherDisplayName": "zxh404"
},
"name": "vscode-proto3",
"publisher": "zxh404",
"version": "0.5.4"
},
{
"metadata": {
"id": "df9070f0-77d4-4333-a6cd-c4f73b99385c",
"publisherId": "plex.vscode-protolint",
"publisherDisplayName": "plex"
},
"name": "vscode-protolint",
"publisher": "plex",
"version": "0.6.0"
},
{
"metadata": {
"id": "364d2426-116a-433a-a5d8-a5098dc3afbd",
"publisherId": "ms-python.vscode-pylance",
"publisherDisplayName": "ms-python"
},
"name": "vscode-pylance",
"publisher": "ms-python",
"version": "2021.9.4"
},
{
"metadata": {
"id": "88ee4e73-798e-4275-b583-6ee3a3b4e97e",
"publisherId": "Cameron.vscode-pytest",
"publisherDisplayName": "Cameron"
},
"name": "vscode-pytest",
"publisher": "Cameron",
"version": "0.1.1"
},
{
"metadata": {
"id": "72fdfda7-5a15-4832-aef8-ec8031a7e106",
"publisherId": "phgn.vscode-starlark",
"publisherDisplayName": "phgn"
},
"name": "vscode-starlark",
"publisher": "phgn",
"version": "0.3.1"
},
{
"metadata": {
"id": "ff96f1b4-a4b8-45ef-8ecf-c232c0cb75c8",
"publisherId": "hbenl.vscode-test-explorer",
"publisherDisplayName": "hbenl"
},
"name": "vscode-test-explorer",
"publisher": "hbenl",
"version": "2.21.1"
},
{
"metadata": {
"id": "4b3f0982-ad12-491b-b1b2-098f42c230af",
"publisherId": "jgclark.vscode-todo-highlight",
"publisherDisplayName": "jgclark"
},
"name": "vscode-todo-highlight",
"publisher": "jgclark",
"version": "2.0.4"
},
{
"metadata": {
"id": "90a37ca1-92a2-488a-b196-7a8c0b0127ea",
"publisherId": "ms-vscode.vscode-typescript-tslint-plugin",
"publisherDisplayName": "ms-vscode"
},
"name": "vscode-typescript-tslint-plugin",
"publisher": "ms-vscode",
"version": "1.3.3"
},
{
"metadata": {
"id": "f2fd462f-f1bd-4c62-b54f-59a4e5ffc6a3",
"publisherId": "WakaTime.vscode-wakatime",
"publisherDisplayName": "WakaTime"
},
"name": "vscode-wakatime",
"publisher": "WakaTime",
"version": "17.0.8"
},
{
"metadata": {
"id": "2061917f-f76a-458a-8da9-f162de22b97e",
"publisherId": "redhat.vscode-yaml",
"publisherDisplayName": "redhat"
},
"name": "vscode-yaml",
"publisher": "redhat",
"version": "0.23.0"
},
{
"metadata": {
"id": "0b4b8cd5-e418-4c5f-b288-7c825aab0efd",
"publisherId": "PascalReitermann93.vscode-yaml-sort",
"publisherDisplayName": "PascalReitermann93"
},
"name": "vscode-yaml-sort",
"publisher": "PascalReitermann93",
"version": "5.1.0"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+r",
"command": "code-runner.run",
"when": "editorTextFocus && editorLangId != 'markdown'"
},
{
"key": "ctrl+alt+n",
"command": "-code-runner.run"
},
{
"key": "alt+m",
"command": "markdown.showPreviewToSide",
"when": "editorLangId == 'markdown'"
},
{
"key": "cmd+left",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+right",
"command": "workbench.action.positionPanelRight"
},
{
"key": "cmd-right",
"command": "workbench.action.togglePanel",
"when" : "activePanel != '' && panelPosition == 'right'"
},
{
"key": "cmd+down",
"command": "workbench.action.positionPanelBottom"
},
{
"key": "cmd-down",
"command": "workbench.action.togglePanel",
"when" : "activePanel != '' && panelPosition == 'bottom'"
},
{
"key": "alt+cmd+p",
"command": "workbench.action.problems.focus"
},
{
"key": "alt+cmd+o",
"command": "workbench.panel.output.focus"
},
{
"key": "alt+cmd+s",
"command": "workbench.view.search",
"when": "!searchViewletVisible"
},
{
"key": "shift+cmd+f",
"command": "-workbench.view.search",
"when": "!searchViewletVisible"
},
{
"key": "ctrl+tab",
"command": "workbench.action.showAllEditors"
},
{
"key": "alt+cmd+tab",
"command": "-workbench.action.showAllEditors"
},
{
"key": "alt+tab",
"command": "workbench.action.switchWindow"
},
{
"key": "ctrl+w",
"command": "-workbench.action.switchWindow"
},
{
"key": "ctrl+shift+tab",
"command": "-workbench.action.quickOpenLeastRecentlyUsedEditorInGroup"
},
{
"key": "ctrl+tab",
"command": "-workbench.action.quickOpenPreviousRecentlyUsedEditorInGroup"
},
{
"key": "cmd+b",
"command": "workbench.action.splitEditor"
},
{
"key": "cmd+\\",
"command": "-workbench.action.splitEditor"
},
{
"key": "alt+cmd+e",
"command": "editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
{
"key": "shift+alt+i",
"command": "-editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+h",
"command": "addCursorsAtSearchResults",
"when": "fileMatchOrMatchFocus && searchViewletVisible"
},
{
"key": "shift+cmd+l",
"command": "-addCursorsAtSearchResults",
"when": "fileMatchOrMatchFocus && searchViewletVisible"
},
{
"key": "shift+alt+r",
"command": "editor.action.refactor",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+r",
"command": "-editor.action.refactor",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+s",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+cmd+down",
"command": "-notebook.cell.focusInOutput",
"when": "notebookCellHasOutputs && notebookEditorFocused && activeEditor == 'workbench.editor.notebook'"
},
{
"key": "ctrl+cmd+down",
"command": "-workbench.action.terminal.resizePaneDown",
"when": "terminalFocus"
},
{
"key": "shift+cmd+g",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "ctrl+alt+up",
"command": "cursorPageUp",
"when": "textInputFocus"
},
{
"key": "pageup",
"command": "-cursorPageUp",
"when": "textInputFocus"
},
{
"key": "ctrl+alt+down",
"command": "cursorPageDown",
"when": "textInputFocus"
},
{
"key": "pagedown",
"command": "-cursorPageDown",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+down",
"command": "cursorPageDownSelect",
"when": "textInputFocus"
},
{
"key": "shift+pagedown",
"command": "-cursorPageDownSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+alt+up",
"command": "cursorPageUpSelect",
"when": "textInputFocus"
},
{
"key": "shift+pageup",
"command": "-cursorPageUpSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+u",
"command": "deleteAllLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+backspace",
"command": "-deleteAllLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+delete",
"command": "-deleteAllRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+cmd+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+cmd+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "cmd+enter",
"command": "refactorPreview.apply",
"when": "refactorPreview.enabled && refactorPreview.hasCheckedChanges && focusedView == 'refactorPreview'"
},
{
"key": "shift+enter",
"command": "-refactorPreview.apply",
"when": "refactorPreview.enabled && refactorPreview.hasCheckedChanges && focusedView == 'refactorPreview'"
},
{
"key": "ctrl+d",
"command": "-deleteRight",
"when": "textInputFocus"
},
{
"key": "alt+f12",
"command": "-editor.action.peekDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+alt+d",
"command": "-extension.downloadSettings"
},
{
"key": "shift+enter+d",
"command": "editor.action.goToTypeDefinition"
},
{
"key": "shift+alt+d",
"command": "editor.action.peekDefinition"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+k f12",
"command": "-editor.action.revealDefinitionAside",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+l",
"command": "multiCommand.selectLine"
},
{
"key": "ctrl+shift+p",
"command": "editor.action.revealDefinition"
},
{
"key": "ctrl+shift+down",
"command": "workbench.action.debug.continue",
"when": "inDebugMode && debugState == 'stopped'"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+down",
"command": "workbench.action.debug.pause",
"when": "inDebugMode && debugState == 'running'"
},
{
"key": "f6",
"command": "-workbench.action.debug.pause",
"when": "debugState == 'running'"
},
{
"key": "ctrl+shift+enter",
"command": "workbench.action.debug.stop",
"when": "inDebugMode"
},
{
"key": "shift+f5",
"command": "-workbench.action.debug.stop",
"when": "inDebugMode"
},
{
"key": "ctrl+shift+enter",
"command": "extension.node-debug.startWithStopOnEntry",
"when": "!inDebugMode && debugConfigurationType == 'node'"
},
{
"key": "f10",
"command": "-extension.node-debug.startWithStopOnEntry",
"when": "!inDebugMode && debugConfigurationType == 'node'"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.debug.stepInto",
"when": "debugState != 'inactive'"
},
{
"key": "f11",
"command": "-workbench.action.debug.stepInto",
"when": "debugState != 'inactive'"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.debug.stepOut",
"when": "debugState == 'stopped'"
},
{
"key": "shift+f11",
"command": "-workbench.action.debug.stepOut",
"when": "debugState == 'stopped'"
},
{
"key": "ctrl+shift+up",
"command": "workbench.action.debug.stepOver",
"when": "debugState == 'stopped'"
},
{
"key": "f10",
"command": "-workbench.action.debug.stepOver",
"when": "debugState == 'stopped'"
},
{
"key": "ctrl+shift+space",
"command": "editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus"
},
{
"key": "f9",
"command": "-editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+left",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack"
},
{
"key": "ctrl+alt+right",
"command": "workbench.action.navigateForward"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward"
},
{
"key": "shift+cmd+b",
"command": "workbench.action.tasks.runTask"
},
{
"key": "shift+cmd+b",
"command": "-workbench.action.tasks.build"
},
{
"key": "ctrl+alt+cmd+r",
"command": "workbench.action.evenEditorWidths"
},
{
"key": "ctrl+alt+cmd+/",
"command": "workbench.action.toggleEditorWidths"
},
{
"key": "cmd+,",
"command": "workbench.action.openSettings2",
"when": "!inSettingsEditor"
},
{
"key": "cmd+,",
"command": "workbench.action.openSettingsJson",
"when": "inSettingsEditor"
},
{
"key": "cmd+k",
"command": "workbench.action.openGlobalKeybindings",
"when": "!inKeybindings && !terminalFocus"
},
{
"key": "cmd+k cmd+s",
"command": "-workbench.action.openGlobalKeybindings",
},
{
"key": "cmd+k",
"command": "workbench.action.openGlobalKeybindingsFile",
"when": "inKeybindings && !terminalFocus"
},
{
"key": "alt+cmd+l",
"command": "-toggleFindInSelection",
"when": "editorFocus"
},
{
"key": "ctrl+alt+left",
"command": "-cursorWordPartLeft",
"when": "textInputFocus"
},
{
"key": "shift+alt+g",
"command": "git.checkout"
},
{
"key": "cmd+t",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "cmd+r",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
}
]
{
// Visual Studio Code - Eidtor
"editor.accessibilitySupport": "off",
"editor.codeLensFontFamily": "Fira Code",
"editor.colorDecorators": false,
"editor.copyWithSyntaxHighlighting": false,
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": true,
"editor.cursorStyle": "line",
"editor.cursorSurroundingLines": 10,
"editor.cursorSurroundingLinesStyle": "default",
"editor.cursorWidth": 4,
"editor.detectIndentation": false,
"editor.dragAndDrop": false,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": "'ss03', 'ss07','ss08'",
"editor.fontSize": 13,
"editor.fontWeight": "200",
"editor.gotoLocation.alternativeTypeDefinitionCommand": "editor.action.goTossssReferences",
"editor.largeFileOptimizations": false,
"editor.minimap.enabled": false,
"editor.minimap.renderCharacters": false,
"editor.parameterHints.cycle": true,
"editor.renderLineHighlight":"all",
"editor.renderWhitespace": "boundary",
"editor.snippetSuggestions": "top",
"editor.suggest.showStatusBar": true,
"editor.tabCompletion": "on",
"editor.rulers": [
{ "column": 100, "color": "#ffffff50"},
{ "column": 120, "color": "#ffffff90"},
{ "column": 75, "color": "#ffffff10"},
{ "column": 80, "color": "#ffffff30"},
],
"editor.wordWrapColumn": 120,
// Visual Studio Code - UI
"terminal.integrated.automationShell.osx": "/usr/local/bin/bash",
"terminal.integrated.fontFamily":"Fira Code",
"terminal.integrated.fontSize": 12,
"terminal.integrated.fontWeight": "400",
"terminal.integrated.lineHeight": 1.5,
"breadcrumbs.enabled": true,
"explorer.compactFolders": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.openEditors.visible": 0,
"outline.problems.enabled": false,
"search.actionsPosition": "right",
"search.showLineNumbers": true,
"search.useGlobalIgnoreFiles": true,
"window.closeWhenEmpty": true,
"window.openFoldersInNewWindow": "on",
"workbench.editor.closeEmptyGroups": true,
"workbench.editor.closeOnFileDelete": true,
"workbench.editor.decorations.badges": true,
"workbench.editor.highlightModifiedTabs": true,
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"workbench.editor.showTabs": true,
"workbench.iconTheme": "material-icon-theme",
"workbench.sideBar.location": "left",
"workbench.startupEditor": "none",
"workbench.statusBar.visible": true,
"workbench.list.keyboardNavigation": "filter",
"workbench.colorCustomizations": {
"editorRuler.foreground": "#ff4081",
"terminal.ansiRed": "#d32318",
},
"material-icon-theme.folders.color": "#42a5f5",
"material-icon-theme.hidesExplorerArrows": true,
"material-icon-theme.folders.theme": "specific",
"material-icon-theme.folders.associations": {
"sources.less" : "less",
"assets-sources" : "src",
"templates" : "resource",
".sandbox" : "tools"
},
"material-icon-theme.languages.associations": {
"php": "php_elephant"
},
"material-icon-theme.files.associations": {
"*.Makefile": "makefile",
},
"files.associations": {
"*.Makefile": "makefile",
},
"security.workspace.trust.enabled": false,
// Visual Studi Code : Functionality
"telemetry.enableTelemetry": false,
"markdown.preview.breaks": true,
"jupyter.allowImportFromNotebook": false,
"extensions.ignoreRecommendations": true,
// Zen Mode
"zenMode.hideLineNumbers": false,
"zenMode.hideActivityBar": false,
// Visual Studio Code: Git
"merge-conflict.autoNavigateNextConflict.enabled": true,
"git.autofetch": true,
"git.allowForcePush": true,
"git.confirmForcePush": false,
"diffEditor.ignoreTrimWhitespace": false,
// Languages && Extensions
"[git-commit]": {
"editor.rulers": [
{ "column": 72, "color": "#31577e" },
{ "column": 50, "color": "#517eac" }
]
},
"[makefile]": {
"editor.rulers": [
{ "column": 90, "color": "#31577e" },
{ "column": 55, "color": "#517eac" }
]
},
"[json]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
},
"yaml.format.enable": true,
"[yaml]": {
"editor.rulers": [
{ "column": 80, "color": "#61bde670"},
],
},
"[terraform]": {
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
},
"[proto3]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "zxh404.vscode-proto3",
},
// Python Lintings
"[python]": {
"editor.formatOnSave": true,
"editor.rulers": [
{ "column": 79, "color": "#31577e"},
{ "column": 99, "color": "#517eac"},
{ "column": 119, "color": "#7196bd"},
],
},
"python.analysis.completeFunctionParens": true,
"python.showStartPage": false,
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.provider": "yapf",
"python.autoUpdateLanguageServer": true,
"python.autoComplete.showAdvancedMembers": false,
"python.autoComplete.addBrackets": true,
"python.defaultInterpreterPath": "/usr/local/bin/python3",
"python.experiments.enabled": false,
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": false,
"python.testing.autoTestDiscoverOnSaveEnabled": false,
"python.jediEnabled": false,
"python.languageServer": "Pylance",
"python.pythonPath": "/usr/local/bin/python3",
// Python : Extension : Sourcery (@sync-ignore)
// PHP
"php.suggest.basic": false,
"[php]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "wongjn.php-sniffer",
"editor.rulers": [
{ "column": 80, "color": "#6862ae70"},
{ "column": 100, "color": "#4d488a70"},
{ "column": 120, "color": "#43397970"},
],
},
// PHP: Extension : PHP Sniffer
// https://github.com/wongjn/vscode-php-sniffer
"phpSniffer.autoDetect": true,
"phpSniffer.executablesFolder": "/usr/local/bin/",
"phpSniffer.standard": "WordPress",
"phpSniffer.run": "onSave",
// PHP: Extension : PHP Doc Blocker
// https://github.com/neild3r/vscode-php-docblocker
"php-docblocker.gap":true,
"php-docblocker.returnGap": true,
"php-docblocker.returnVoid":false,
"php-docblocker.useShortNames": true,
"php-docblocker.author": {
"name": "Butuzov Oleg",
"email": "butuzov@made.ua",
},
"go.languageServerFlags": [
"-rpc.trace",
"serve",
"--debug=localhost:6060",
],
"go.languageServerExperimentalFeatures": {
"autoComplete": true,
"diagnostics": true,
"documentLink": true,
"documentSymbols": true,
"findReferences": true,
"format": true,
"goToDefinition": true,
"goToImplementation": true,
"goToTypeDefinition": true,
"hover": true,
"rename": true,
"signatureHelp": true,
"workspaceSymbols": true,
},
"[go]": {
"editor.formatOnSave": true,
"editor.rulers": [
{ "column": 80, "color": "#61bde670"},
{ "column": 100, "color": "#35ace270"},
{ "column": 120, "color": "#0053b070"},
],
"editor.snippetSuggestions": "top",
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
"editor.codeLens": true,
},
"[go.mod]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
},
"go.formatTool": "gofumpt",
"go.gotoSymbol.ignoreFolders": [],
"go.gotoSymbol.includeImports": true,
"go.gotoSymbol.includeGoroot": false,
"go.coverMode": "count",
"go.coverShowCounts": true,
"go.coverageDecorator.uncoveredBorderColor" : "#f0f",
"go.coverageDecorator.coveredBorderColor" : "#0ff",
// https://github.com/golang/tools/blob/master/gopls/doc/settings.md
// https://github.com/golang/tools/blob/master/gopls/doc/analyzers.md
"gopls": {
"codelenses": {
"generate": false,
"gc_details": true,
},
"usePlaceholders": true,
"ui.semanticTokens": true,
"completeUnimported": true,
"experimentalWorkspaceModule": true,
"experimentalTemplateSupport": true,
"directoryFilters": [ "-node_modules", "-.sandbox" ],
"gofumpt": true,
},
"go.generateTestsFlags" : [ "-template=testify", "-named", "-parallel" ],
"go.testFlags" : ["-v", "-count=1"],
// "go.testFlags" : ["-v", "-count=1", "-p=2", "-race"],
"go.lintTool": "golangci-lint",
"go.lintFlags": [ "--sort-results" ],
"go.delveConfig": {
"dlvLoadConfig": {
"followPointers": true,
"maxVariableRecurse": 1,
"maxStringLen": 64,
"maxArrayValues": 64,
"maxStructFields": -1,
"apiVersion": 2,
"showGlobalVariables": true,
}
},
"go.editorContextMenuCommands": {
//: ... to toggle between a Go file and its test file to the editor context menu
"toggleTestFile": false,
//: ... to add configured tags from struct fields to the editor context menu
"addTags": false,
//: ... to remove configured tags from struct fields to the editor context menu
"removeTags": false,
//: ... to fill struct literal with default values to the editor context menu
"fillStruct": true,
//: ... to run the test under the cursor to the editor context menu
"testAtCursor": false,
//: ... to run all tests in the current file to the editor context menu
"testFile": false,
//: ... to run all tests in the current package to the editor context menu
"testPackage": false,
//: ... to generate unit tests for function under the cursor to the editor context menu
"generateTestForFunction": true,
//: ... to generate unit tests for current file to the editor context menu
"generateTestForFile": true,
//: ...to generate unit tests for currnt package to the editor context menu
"generateTestForPackage": false,
//: ... to import a package to the editor context menu
"addImport": false,
//: ... to run test coverage to the editor context menu
"testCoverage": true,
//: ... to upload the current file or selection to the Go Playground
"playground": true,
//: ... to debug the test under the cursor to the editor context menu
"debugTestAtCursor": true
},
// Extensions: Pair Brackets
"bracket-pair-colorizer-2.colors": [ "#D39E17", "#A15DEF", "#3398DB" ],
// Extension:
"todohighlight.defaultStyle" : {
"color": "default",
"backgroundColor": "rgba(0,0,0,0)",
"overviewRulerColor": "rgba(0,0,0,0)",
// "cursor": "pointer",
"border": "0px solid transparent",
"borderRadius": "0px",
"isWholeLine": false,
},
"todohighlight.isCaseSensitive": false,
"todohighlight.keywords": [
{
"text": "fixme",
"regex": { "pattern": "\\S*?([//|>|#|\\*)])\\s{1,}fixme(\\([a-z0-9_-]*\\))?:(?!\\w)" },
"color": "#fff",
"backgroundColor": "#cd1f28",
"isWholeLine": true,
},
{
"text": "issue",
"regex": { "pattern": "\\S*?([//|>|#|\\*)])\\s{1,}issues?(\\([a-z0-9_-]*\\))?:(?!\\w)" },
"color": "#404040",
"backgroundColor": "#d0e429",
"isWholeLine": true,
"overviewRulerColor": "grey"
},
{
"text": "done",
"regex": { "pattern": "\\S*?([//|>#|\\*)])\\s{1,}done?(\\([a-z0-9_-]*\\))?:(?!\\w)" },
"color": "#000000",
"backgroundColor": "#00a1bf",
"isWholeLine": true,
},
// --------------------
{
"text": "todo:",
"regex": { "pattern": "\\S*?([//|>#|\\*)])\\s{1,}todos?(\\([a-z0-9_-]*\\))?:(?!\\w)" },
"color": "#000000",
"backgroundColor": "#fff000",
"isWholeLine": true,
},
// --------------------
{
"text": "note:",
"regex": { "pattern": "\\S*?([//|>|#|\\*)])\\s{1,}notes?(\\([a-z0-9_-]*\\))?:(?!\\w)" },
"color": "#fff",
"backgroundColor": "#0083cc",
"isWholeLine": true,
},
// --------------------
{
"text": "refactor:",
"regex": { "pattern": "\\S*?([//|>|#|\\*)])\\s{1,}refactor?(\\([a-z0-9_-]*\\))?:(?!\\w)" },
"color": "#fff",
"backgroundColor": "#009248",
"isWholeLine": true,
},
],
"todohighlight.keywordsPattern": "",
"todohighlight.toggleURI": true,
// Extension - better comments
"better-comments.multilineComments": true,
"better-comments.tags": [
{
"tag": "//!",
"color": "#FF2D00",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "//?",
"color": "#3498DB",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
{
"tag": "//=",
"color": "#3498DB",
"strikethrough": false,
"underline": false,
"backgroundColor": "transparent",
"bold": false,
"italic": false
},
],
// Extension: cSpell
"cSpell.userWords": [
"Butuzov",
"Oleg",
"stretchr",
"відображення",
"віртуалізаційного",
"горутина",
"ідіоматично",
"nolint"
],
"cSpell.language": "en",
"cSpell.allowCompoundWords": true,
"cSpell.ignoreRegExpList": [
"<?[\\\\w.\\\\-+]+@\\\\w+(\\\\.\\\\w+)+>?",
"/0x[A-F0-9]/g",
"0x[a-f0-9]+",
"\"([a-zA-Z]{1,})\"",
"'([a-zA-Z]{1,})'",
"([\"'])[^\\\"]+\\1"
],
"cSpell.enableFiletypes": [
"go",
"py"
],
"cSpell.ignorePaths": [
"**/package-lock.json",
"**/node_modules/**",
"**/vscode-extension/**",
"**/.git/objects/**",
".vscode",
".vscode-insiders",
"**/.golangci.yml"
],
// Extension: Code Runner
"code-runner.clearPreviousOutput": true,
"code-runner.enableAppInsights": false,
"code-runner.executorMap": {
"cpp": "cd $dir && clang++ $fileName -o /tmp/out -std=c++14 && /tmp/out && unlink /tmp/out",
"go": "gorun",
"python": "\"$pythonPath\" $fullFileName",
"ts": "tsc",
},
"code-runner.executorMapByGlob": {
"pom.xml": "cd $dir && mvn clean package",
"go": "cd $dir && mvn clean package",
},
"code-runner.ignoreSelection": true,
"code-runner.preserveFocus": true,
"code-runner.respectShebang": true,
"code-runner.saveFileBeforeRun": true,
"code-runner.showExecutionMessage": true,
"code-runner.showRunCommandInEditorContextMenu": false,
"code-runner.showRunCommandInExplorerContextMenu": false,
"code-runner.showRunIconInEditorTitleMenu": false,
// Extensions: Multi Command
"multiCommand.commands": [
{
"command": "multiCommand.selectLine",
"sequence": [
"cursorLineStart",
"cursorLineEndSelect",
"editor.action.clipboardCopyAction"
]
},
],
// Extensions: Emmet
"emmet.includeLanguages": {
"jinja-html": "html"
},
// Extension: Sync Settings
"sync.forceUpload": false,
"sync.gist": "730d3923ee8a43a8c99518295d4eb079",
// "highlight.regexes": {
// "(staging)": [ // A regex will be created from this string, don't forget to double escape it
// { "color": "black", "backgroundColor": "#ffcc00", },
// ],
// "(development|dev)": [ // A regex will be created from this string, don't forget to double escape it
// { "color": "white", "backgroundColor": "red", },
// ],
// "(production)": [ // A regex will be created from this string, don't forget to double escape it
// { "color": "black", "backgroundColor": "#fff", },
// ],
// "(live)": [ // A regex will be created from this string, don't forget to double escape it
// { "color": "black", "backgroundColor": "green", },
// ],
// },
// ---ANYTHING UNDER THIS LINE SHOULD BE SORTED ----------------------------
"this.setting.is.placeholder": "",
"gitlens.advanced.fileHistoryFollowsRenames": true,
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "underline",
"code-runner.runInTerminal": true,
"go.toolsManagement.autoUpdate": true,
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.sash.hoverDelay": 0,
"todo-tree.tree.showScanModeButton": false,
"todo-tree.filtering.useBuiltInExcludes": "file and search excludes",
"todo-tree.highlights.enabled": false,
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"XXX",
"[ ]",
"[x]",
"NOTE"
],
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)",
"workbench.colorTheme": "ACID",
"typescript.updateImportsOnFileMove.enabled": "never",
"redhat.telemetry.enabled": false,
"editor.wordWrap": "bounded",
"latex-workshop.docker.enabled": true,
"latex-workshop.intellisense.unimathsymbols.enabled": true,
"latex-workshop.latex.autoBuild.run": "onSave",
"editor.bracketPairColorization.enabled": true,
"terminal.explorerKind": "external",
"terminal.external.osxExec": "iTerm.app"
}
{
// Place your snippets for go 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
"package main and main function": {
"prefix": "pkgm",
"body": "package main\n\nfunc main() {\n\t$0\n}",
"description": "Snippet for main package & function"
},
"function declaration": {
"prefix": "func",
"body": "func $1($2) $3 {\n\t$0\n}",
"description": "Snippet for function declaration"
},
"switch statement": {
"prefix": "switch",
"body": "switch ${1:expression} {\ncase ${2:condition}:\n\t$0\n}",
"description": "Snippet for switch statement"
},
"interface_casting": {
"prefix": "ic",
"body": "var _ ${1:interface} = (*${2:struct})(nil)",
"description": "CompileTime - nil allocations interface check"
},
"select statement": {
"prefix": "sel",
"body": "select {\ncase ${1:condition}:\n\t$0\n}",
"description": "Snippet for select statement"
},
"for statement": {
"prefix": "for",
"body": "for ${1:i} := ${2:0}; $1 < ${3:count}; $1${4:++} {\n\t$0\n}",
"description": "Snippet for a for loop"
},
"for range statement": {
"prefix": "forr",
"body": "for ${1:_, }${2:var} := range ${3:var} {\n\t$0\n}",
"description": "Snippet for a for range loop"
},
"type struct declaration": {
"prefix": "ts",
"body": "type ${1:name} struct {\n\t$0\n}",
"description": "Struct declaration"
},
"type interface declaration": {
"prefix": "ti",
"body": "type ${1:name} interface {\n\t$0\n}",
"description": "Type interface declaration"
},
"fmt.Println": {
"prefix": "fp",
"body": "fmt.Println(\"$1\")",
"description": "Snippet for fmt.Println()"
},
"fmt.Printf": {
"prefix": "ff",
"body": "fmt.Printf(\"$1\", ${2:var})",
"description": "Snippet for fmt.Printf()"
},
"log variable content": {
"prefix": "lv",
"body": "log.Printf(\"${1:var}: %#+v\\\\n\", ${1:var})",
"description": "Snippet for log.Printf() with variable content"
},
"test function": {
"prefix": "tf",
"body": "func Test$1(t *testing.T) {\n\t$0\n}",
"description": "Snippet for Test function"
},
"benchmark function": {
"prefix": "bf",
"body": [
"func Benchmark$1(b *testing.B) {",
" for ${2:i} := 0; ${2:i} < b.N; ${2:i}++ {",
" $0",
" }",
"}"
],
"description": "benchmark function"
},
"HandlerFunc": {
"prefix": "hf",
"body": ["func${2}(${3:w} http.ResponseWriter, ${4:r} *http.Request){", " ${1:...}", "}"],
"description": "HandlerFunc"
},
"example function": {
"prefix": "ef",
"body": "func Example$1() {\n\t$2\n\t//Output:\n\t$3\n}",
"description": "Snippet for Example function"
},
"main function": {
"prefix": "fm",
"body": "func main() {\n\t$1\n}",
"description": "Snippet for main function"
},
// Tests
"table driven test": {
"prefix": "tdd",
"body": "func Test$1(t *testing.T) {\n\ttestCases := []struct {\n\t\tdesc\tstring\n\t\t$2\n\t}{\n\t\t{\n\t\t\tdesc: \"$3\",\n\t\t\t$4\n\t\t},\n\t}\n\tfor _, tC := range testCases {\n\t\tt.Run(tC.desc, func(t *testing.T) {\n\t\t\t$0\n\t\t})\n\t}\n}",
"description": "Snippet for table driven test"
},
"sort implementation": {
"prefix": "ss",
"body": "type ${1:SortBy} []${2:Type}\n\nfunc (a $1) Len() int { return len(a) }\nfunc (a $1) Swap(i, j int) { a[i], a[j] = a[j], a[i] }\nfunc (a $1) Less(i, j int) bool { ${3:return a[i] < a[j]} }",
"description": "Snippet for a custom sort.Sort interface implementation, for a given slice type."
},
"Middleware": {
"prefix": "mw",
"body": [
"func ${1:HandlerName}(h http.HandlerFunc${2:,}) http.HandlerFunc {\n",
" ${0:...}\n",
" return func(w http.ResponseWriter, r *http.Request) { h.ServeHTTP(w, r) }",
"}"
],
"description": "Middleware"
},
"ms": {
"prefix": "ms",
"body": ["if $1, ok := $2[$3]; !ok {", "\t$4", "}"],
"description": "ms"
},
"ec": {
"prefix": "ec",
"body": ["if $1, err := $2; !err != nil {", "\t$3", "}"],
"description": "ec"
},
"ok": {
"prefix": "ok",
"body": ["if $1, ok := $2; ok {", "\t$3", "}"],
"description": "ok"
}
}
{
// Place your snippets for gogo 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 gohtml 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 makefile 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:
"": {
"prefix": "ver_",
"body": [
"# [${TM_SELECTED_TEXT}]",
"${TM_SELECTED_TEXT:/upcase}_VERSION:=0.0.0",
"${TM_SELECTED_TEXT:/downcase}: bin/${TM_SELECTED_TEXT:/downcase}-$(${TM_SELECTED_TEXT:/upcase}_VERSION)",
"",
"bin/${TM_SELECTED_TEXT:/downcase}-$(${TM_SELECTED_TEXT:/upcase}_VERSION):",
" @ $(MAKE) bin/${TM_SELECTED_TEXT:/downcase}"
],
"description": ""
}
}
{
"Print to console": {
"scope": "text",
"prefix": "test",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Go: Bounds Check",
"type": "shell",
"command": "go tool compile -d=ssa/check_bce/debug=1 ${fileDirname}/*.go && for _ in '${fileDirname}/*.o'; do unlink $_ ; done",
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage":false,
"clear": true,
},
"problemMatcher": [
"$go"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment