Skip to content

Instantly share code, notes, and snippets.

@artisin
Last active January 27, 2020 18:15
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 artisin/25911f3aef7e9027cec4ee6ac38945fa to your computer and use it in GitHub Desktop.
Save artisin/25911f3aef7e9027cec4ee6ac38945fa to your computer and use it in GitHub Desktop.
vscode
{"lastUpload":"2020-01-27T18:14:18.713Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "58bfc5c5-9e14-40cb-afb8-104bfe792328",
"publisherId": "RoscoP.ActiveFileInStatusBar",
"publisherDisplayName": "RoscoP"
},
"name": "ActiveFileInStatusBar",
"publisher": "RoscoP",
"version": "1.0.3"
},
{
"metadata": {
"id": "cff100b7-37b6-4c79-ad06-129972cda397",
"publisherId": "janjoerke.align-by-regex",
"publisherDisplayName": "janjoerke"
},
"name": "align-by-regex",
"publisher": "janjoerke",
"version": "1.0.4"
},
{
"metadata": {
"id": "9e919931-6833-483d-a7b9-966f8f974227",
"publisherId": "joaompinto.asciidoctor-vscode",
"publisherDisplayName": "joaompinto"
},
"name": "asciidoctor-vscode",
"publisher": "joaompinto",
"version": "2.7.8"
},
{
"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": "cb5ffd62-3768-4f92-83a0-ccf84e22ddf4",
"publisherId": "kevinkyang.auto-comment-blocks",
"publisherDisplayName": "kevinkyang"
},
"name": "auto-comment-blocks",
"publisher": "kevinkyang",
"version": "1.0.1"
},
{
"metadata": {
"id": "b9367b5e-ec43-480b-a48b-6e6eacf51130",
"publisherId": "maddog986.autodocblocker",
"publisherDisplayName": "maddog986"
},
"name": "autodocblocker",
"publisher": "maddog986",
"version": "1.0.2"
},
{
"metadata": {
"id": "679d917d-7c1c-407e-8cfb-345ea3dc4004",
"publisherId": "swjh.base16-leaf-tomorrow-vscode",
"publisherDisplayName": "swjh"
},
"name": "base16-leaf-tomorrow-vscode",
"publisher": "swjh",
"version": "1.0.0"
},
{
"metadata": {
"id": "b1b0f283-8246-4e90-832e-a6c409d378d1",
"publisherId": "mads-hartmann.bash-ide-vscode",
"publisherDisplayName": "mads-hartmann"
},
"name": "bash-ide-vscode",
"publisher": "mads-hartmann",
"version": "1.4.0"
},
{
"metadata": {
"id": "7a0110bb-231a-4598-aa1b-0769ea46d28b",
"publisherId": "aaron-bond.better-comments",
"publisherDisplayName": "aaron-bond"
},
"name": "better-comments",
"publisher": "aaron-bond",
"version": "2.0.5"
},
{
"metadata": {
"id": "464f4ac7-af65-4aa9-9907-4ba7fa419085",
"publisherId": "bungcip.better-toml",
"publisherDisplayName": "bungcip"
},
"name": "better-toml",
"publisher": "bungcip",
"version": "0.3.2"
},
{
"metadata": {
"id": "b689fcc8-d494-4dbf-a228-2c694a578afc",
"publisherId": "alefragnani.Bookmarks",
"publisherDisplayName": "alefragnani"
},
"name": "Bookmarks",
"publisher": "alefragnani",
"version": "10.4.4"
},
{
"metadata": {
"id": "f583eafd-aa0d-4ccb-8f44-d1e610389660",
"publisherId": "CoenraadS.bracket-pair-colorizer",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer",
"publisher": "CoenraadS",
"version": "1.0.61"
},
{
"metadata": {
"id": "c529c9f4-005a-45b0-9fb9-89e0d9b8b990",
"publisherId": "Anjali.clipboard-history",
"publisherDisplayName": "Anjali"
},
"name": "clipboard-history",
"publisher": "Anjali",
"version": "1.0.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": "5cf10212-681f-48c7-b66f-bcce5dc44a64",
"publisherId": "ExodiusStudios.comment-anchors",
"publisherDisplayName": "ExodiusStudios"
},
"name": "comment-anchors",
"publisher": "ExodiusStudios",
"version": "1.6.1"
},
{
"metadata": {
"id": "bfa3c8e5-2106-4c95-a6d5-d8d02ed1b194",
"publisherId": "salbert.comment-ts",
"publisherDisplayName": "salbert"
},
"name": "comment-ts",
"publisher": "salbert",
"version": "0.9.11"
},
{
"metadata": {
"id": "535656b6-a58f-4f23-a09e-4c286f77ca1f",
"publisherId": "Etienne.copy-path",
"publisherDisplayName": "Etienne"
},
"name": "copy-path",
"publisher": "Etienne",
"version": "0.0.1"
},
{
"metadata": {
"id": "d0bfc4ab-1d3a-4487-8782-7cf6027b4fff",
"publisherId": "ms-vscode.csharp",
"publisherDisplayName": "ms-vscode"
},
"name": "csharp",
"publisher": "ms-vscode",
"version": "1.21.9"
},
{
"metadata": {
"id": "dc01aee4-c401-4508-b93a-d5ccc16b6ede",
"publisherId": "rafaelsalguero.csharp2ts",
"publisherDisplayName": "rafaelsalguero"
},
"name": "csharp2ts",
"publisher": "rafaelsalguero",
"version": "0.0.23"
},
{
"metadata": {
"id": "d4034990-c89f-4325-8dfe-f80efa150497",
"publisherId": "carolynvs.dep",
"publisherDisplayName": "carolynvs"
},
"name": "dep",
"publisher": "carolynvs",
"version": "0.1.0"
},
{
"metadata": {
"id": "90a838c3-675b-4b87-b7a5-75ea88432cce",
"publisherId": "joelday.docthis",
"publisherDisplayName": "joelday"
},
"name": "docthis",
"publisher": "joelday",
"version": "0.7.1"
},
{
"metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "EditorConfig.EditorConfig",
"publisherDisplayName": "EditorConfig"
},
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.13.0"
},
{
"metadata": {
"id": "a6761011-549f-4561-ae6d-cc9c7a040710",
"publisherId": "fisheva.eva-theme",
"publisherDisplayName": "fisheva"
},
"name": "eva-theme",
"publisher": "fisheva",
"version": "0.7.9"
},
{
"metadata": {
"id": "5e23dc82-611d-457a-a0c6-e515089e86a4",
"publisherId": "bibhasdn.git-easy",
"publisherDisplayName": "bibhasdn"
},
"name": "git-easy",
"publisher": "bibhasdn",
"version": "1.11.0"
},
{
"metadata": {
"id": "e4e21a5c-a882-4d7d-b8d8-cfe05b1436c6",
"publisherId": "huizhou.githd",
"publisherDisplayName": "huizhou"
},
"name": "githd",
"publisher": "huizhou",
"version": "2.1.0"
},
{
"metadata": {
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511",
"publisherId": "donjayamanne.githistory",
"publisherDisplayName": "donjayamanne"
},
"name": "githistory",
"publisher": "donjayamanne",
"version": "0.4.13"
},
{
"metadata": {
"id": "04ebe680-6c3c-4882-8310-26b324b72bfe",
"publisherId": "ms-vscode.github-issues-prs",
"publisherDisplayName": "ms-vscode"
},
"name": "github-issues-prs",
"publisher": "ms-vscode",
"version": "0.9.2"
},
{
"metadata": {
"id": "3908a3b6-b2ab-4bdc-ab68-653027fa59b4",
"publisherId": "HookyQR.GitHubIssues",
"publisherDisplayName": "HookyQR"
},
"name": "GitHubIssues",
"publisher": "HookyQR",
"version": "0.1.2"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "9.9.3"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "ms-vscode.Go",
"publisherDisplayName": "ms-vscode"
},
"name": "Go",
"publisher": "ms-vscode",
"version": "0.12.0"
},
{
"metadata": {
"id": "2a0c8638-adab-43b1-b168-974c9208f10d",
"publisherId": "766b.go-outliner",
"publisherDisplayName": "766b"
},
"name": "go-outliner",
"publisher": "766b",
"version": "0.1.20"
},
{
"metadata": {
"id": "3e8a391a-f3f0-44b2-8631-7847b0c8839a",
"publisherId": "kumar-harsh.graphql-for-vscode",
"publisherDisplayName": "kumar-harsh"
},
"name": "graphql-for-vscode",
"publisher": "kumar-harsh",
"version": "1.15.3"
},
{
"metadata": {
"id": "a2cec723-5349-460d-9de9-0fd1f8d3456f",
"publisherId": "xabikos.JavaScriptSnippets",
"publisherDisplayName": "xabikos"
},
"name": "JavaScriptSnippets",
"publisher": "xabikos",
"version": "1.7.2"
},
{
"metadata": {
"id": "93ecc089-f396-47b4-8676-7fa3bc156a2c",
"publisherId": "sysoev.language-stylus",
"publisherDisplayName": "sysoev"
},
"name": "language-stylus",
"publisher": "sysoev",
"version": "1.11.0"
},
{
"metadata": {
"id": "25adc849-5c3a-4dca-95b3-55a6461077ee",
"publisherId": "xyz.local-history",
"publisherDisplayName": "xyz"
},
"name": "local-history",
"publisher": "xyz",
"version": "1.7.0"
},
{
"metadata": {
"id": "1f5eb737-5496-44a3-a8a1-36a85eee4979",
"publisherId": "magicstack.MagicPython",
"publisherDisplayName": "magicstack"
},
"name": "MagicPython",
"publisher": "magicstack",
"version": "1.1.0"
},
{
"metadata": {
"id": "98790d67-10fa-497c-9113-f6c7489207b2",
"publisherId": "yzhang.markdown-all-in-one",
"publisherDisplayName": "yzhang"
},
"name": "markdown-all-in-one",
"publisher": "yzhang",
"version": "2.5.1"
},
{
"metadata": {
"id": "3b1db1fc-c7f7-4bd6-9fa4-b499dfa99a8a",
"publisherId": "shd101wyy.markdown-preview-enhanced",
"publisherDisplayName": "shd101wyy"
},
"name": "markdown-preview-enhanced",
"publisher": "shd101wyy",
"version": "0.5.1"
},
{
"metadata": {
"id": "cd42ba57-4693-4945-8e2b-bbbb703b1a5f",
"publisherId": "jrieken.md-navigate",
"publisherDisplayName": "jrieken"
},
"name": "md-navigate",
"publisher": "jrieken",
"version": "0.0.1"
},
{
"metadata": {
"id": "ef2a5b38-02c4-4193-8561-1f072c209474",
"publisherId": "silvenon.mdx",
"publisherDisplayName": "silvenon"
},
"name": "mdx",
"publisher": "silvenon",
"version": "0.1.0"
},
{
"metadata": {
"id": "9f47c6a1-da06-41ce-ba18-5e281296aa0a",
"publisherId": "stringham.move-ts",
"publisherDisplayName": "stringham"
},
"name": "move-ts",
"publisher": "stringham",
"version": "1.11.5"
},
{
"metadata": {
"id": "24331b79-009c-4729-a530-baf3b2189cb1",
"publisherId": "kleber-swf.ocean-dark-extended",
"publisherDisplayName": "kleber-swf"
},
"name": "ocean-dark-extended",
"publisher": "kleber-swf",
"version": "1.5.0"
},
{
"metadata": {
"id": "0d1241e3-fa60-4f24-8f2a-6d7085677c48",
"publisherId": "ionutvmi.path-autocomplete",
"publisherDisplayName": "ionutvmi"
},
"name": "path-autocomplete",
"publisher": "ionutvmi",
"version": "1.13.3"
},
{
"metadata": {
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86",
"publisherId": "christian-kohler.path-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "path-intellisense",
"publisher": "christian-kohler",
"version": "1.4.2"
},
{
"metadata": {
"id": "593fe6a5-513e-4cb3-abfb-5b9f5fe39802",
"publisherId": "ms-pyright.pyright",
"publisherDisplayName": "ms-pyright"
},
"name": "pyright",
"publisher": "ms-pyright",
"version": "1.1.21"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2019.10.41019"
},
{
"metadata": {
"id": "8b5e7d83-3b28-4db4-b82f-6ed0b3f4ed91",
"publisherId": "Everspace.rightclick-git",
"publisherDisplayName": "Everspace"
},
"name": "rightclick-git",
"publisher": "Everspace",
"version": "1.0.0"
},
{
"metadata": {
"id": "570e6089-b871-41df-9cf4-a723cb34ef01",
"publisherId": "rust-lang.rust",
"publisherDisplayName": "rust-lang"
},
"name": "rust",
"publisher": "rust-lang",
"version": "0.7.0"
},
{
"metadata": {
"id": "7a06196f-475e-4349-935f-745f04915e27",
"publisherId": "Gruntfuggly.save-without-format",
"publisherDisplayName": "Gruntfuggly"
},
"name": "save-without-format",
"publisher": "Gruntfuggly",
"version": "0.0.3"
},
{
"metadata": {
"id": "7d236dd4-6af6-48f4-9464-6bf82ad36aaa",
"publisherId": "ban.spellright",
"publisherDisplayName": "ban"
},
"name": "spellright",
"publisher": "ban",
"version": "3.0.50"
},
{
"metadata": {
"id": "529697b9-b343-4b1c-ba2f-f5ef692132d4",
"publisherId": "ms-vscode.sublime-keybindings",
"publisherDisplayName": "ms-vscode"
},
"name": "sublime-keybindings",
"publisher": "ms-vscode",
"version": "4.0.6"
},
{
"metadata": {
"id": "3b299b50-324d-4dda-be8d-cde23fa887c9",
"publisherId": "bsides.Theme-Base16-Eighties",
"publisherDisplayName": "bsides"
},
"name": "Theme-Base16-Eighties",
"publisher": "bsides",
"version": "0.0.1"
},
{
"metadata": {
"id": "653a22f9-da2e-4bfe-8996-e0b3c169c502",
"publisherId": "lei.theme-chromodynamics",
"publisherDisplayName": "lei"
},
"name": "theme-chromodynamics",
"publisher": "lei",
"version": "1.0.8"
},
{
"metadata": {
"id": "7f466ec2-c6d8-4763-bc6a-09b76bb905a7",
"publisherId": "philipbe.theme-gray-matter",
"publisherDisplayName": "philipbe"
},
"name": "theme-gray-matter",
"publisher": "philipbe",
"version": "1.6.0"
},
{
"metadata": {
"id": "9001c3f8-94bf-484d-92fc-07f2fd03ff5e",
"publisherId": "ms-vscode.Theme-MarkdownKit",
"publisherDisplayName": "ms-vscode"
},
"name": "Theme-MarkdownKit",
"publisher": "ms-vscode",
"version": "0.1.4"
},
{
"metadata": {
"id": "311877f8-d91b-486b-8277-87e530a22867",
"publisherId": "aStonedPenguin.tomorrow-night-eighties-contrast",
"publisherDisplayName": "aStonedPenguin"
},
"name": "tomorrow-night-eighties-contrast",
"publisher": "aStonedPenguin",
"version": "1.0.0"
},
{
"metadata": {
"id": "33246641-9e78-42de-9738-4a0b6fe818a0",
"publisherId": "aljazsim.tsco",
"publisherDisplayName": "aljazsim"
},
"name": "tsco",
"publisher": "aljazsim",
"version": "1.0.16"
},
{
"metadata": {
"id": "6bc1e3ad-c0e2-46b6-bbad-246c5f59215b",
"publisherId": "pmneo.tsimporter",
"publisherDisplayName": "pmneo"
},
"name": "tsimporter",
"publisher": "pmneo",
"version": "2.0.1"
},
{
"metadata": {
"id": "acb8528d-220f-4a4c-9739-831ead30eac0",
"publisherId": "kdcro101.typescript-code-navigator",
"publisherDisplayName": "kdcro101"
},
"name": "typescript-code-navigator",
"publisher": "kdcro101",
"version": "1.2.4"
},
{
"metadata": {
"id": "66aff7f9-96b5-4e8b-a5f6-2c27c968a816",
"publisherId": "jmfirth.vsc-space-block-jumper",
"publisherDisplayName": "jmfirth"
},
"name": "vsc-space-block-jumper",
"publisher": "jmfirth",
"version": "1.2.2"
},
{
"metadata": {
"id": "5b7424e4-d934-4816-83ce-b422c482a9e7",
"publisherId": "micnil.vscode-checkpoints",
"publisherDisplayName": "micnil"
},
"name": "vscode-checkpoints",
"publisher": "micnil",
"version": "1.2.0"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "ms-azuretools.vscode-docker",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "0.8.2"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.1"
},
{
"metadata": {
"id": "d637104e-1fd7-4063-98fc-8afe46012c9b",
"publisherId": "sleistner.vscode-fileutils",
"publisherDisplayName": "sleistner"
},
"name": "vscode-fileutils",
"publisher": "sleistner",
"version": "2.14.5"
},
{
"metadata": {
"id": "7accc875-0223-4da4-bb87-412164d18c2b",
"publisherId": "howardzuo.vscode-git-tags",
"publisherDisplayName": "howardzuo"
},
"name": "vscode-git-tags",
"publisher": "howardzuo",
"version": "1.4.3"
},
{
"metadata": {
"id": "df3d5e8c-3354-48be-8c7b-9065d2168580",
"publisherId": "windmilleng.vscode-go-autotest",
"publisherDisplayName": "windmilleng"
},
"name": "vscode-go-autotest",
"publisher": "windmilleng",
"version": "1.6.0"
},
{
"metadata": {
"id": "829a192d-496c-44ac-87f3-0a84ce36a853",
"publisherId": "emmanuelbeziat.vscode-great-icons",
"publisherDisplayName": "emmanuelbeziat"
},
"name": "vscode-great-icons",
"publisher": "emmanuelbeziat",
"version": "2.1.47"
},
{
"metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "vscode-icons-team.vscode-icons",
"publisherDisplayName": "vscode-icons-team"
},
"name": "vscode-icons",
"publisher": "vscode-icons-team",
"version": "9.7.0"
},
{
"metadata": {
"id": "acee5b9f-6151-4920-96d3-cbae49f09071",
"publisherId": "pajoma.vscode-journal",
"publisherDisplayName": "pajoma"
},
"name": "vscode-journal",
"publisher": "pajoma",
"version": "0.9.1"
},
{
"metadata": {
"id": "4e5103c7-28d4-4a64-81e1-a912f5891900",
"publisherId": "Gruntfuggly.vscode-journal-view",
"publisherDisplayName": "Gruntfuggly"
},
"name": "vscode-journal-view",
"publisher": "Gruntfuggly",
"version": "0.0.26"
},
{
"metadata": {
"id": "e0255d98-d531-4176-86ef-bf26208f3240",
"publisherId": "TomasHubelbauer.vscode-markdown-table-format",
"publisherDisplayName": "TomasHubelbauer"
},
"name": "vscode-markdown-table-format",
"publisher": "TomasHubelbauer",
"version": "1.0.1"
},
{
"metadata": {
"id": "69ddd764-339a-4ecc-97c1-9c4ece58e36d",
"publisherId": "GitHub.vscode-pull-request-github",
"publisherDisplayName": "GitHub"
},
"name": "vscode-pull-request-github",
"publisher": "GitHub",
"version": "0.9.2"
},
{
"metadata": {
"id": "97a08c5f-6667-4242-a5c5-045dfb6bd4b9",
"publisherId": "wayou.vscode-todo-highlight",
"publisherDisplayName": "wayou"
},
"name": "vscode-todo-highlight",
"publisher": "wayou",
"version": "1.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.2.3"
},
{
"metadata": {
"id": "2061917f-f76a-458a-8da9-f162de22b97e",
"publisherId": "redhat.vscode-yaml",
"publisherDisplayName": "redhat"
},
"name": "vscode-yaml",
"publisher": "redhat",
"version": "0.6.1"
},
{
"metadata": {
"id": "876e8f93-74d0-4f4f-91b7-34a09f19f444",
"publisherId": "VisualStudioExptTeam.vscodeintellicode",
"publisherDisplayName": "VisualStudioExptTeam"
},
"name": "vscodeintellicode",
"publisher": "VisualStudioExptTeam",
"version": "1.2.4"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "alt+k",
"command": "cursorUp",
"when": "textInputFocus"
},
{
"key": "alt+j",
"command": "cursorDown",
"when": "textInputFocus"
},
{
"key": "alt+h",
"command": "cursorLeft",
"when": "textInputFocus"
},
{
"key": "alt+l",
"command": "cursorRight",
"when": "textInputFocus"
},
{
"key": "alt+w",
"command": "cursorWordRight",
"when": "textInputFocus"
},
{
"key": "alt+b",
"command": "cursorWordLeft",
"when": "textInputFocus"
},
{
"key": "shift+alt+w",
"command": "cursorWordRightSelect",
"when": "textInputFocus"
},
{
"key": "shift+alt+b",
"command": "cursorWordLeftSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+alt+left",
"command": "cursorLineStart",
"when": "textInputFocus"
},
{
"key": "ctrl+alt+right",
"command": "cursorLineEnd",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+j",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+y",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+shift+y",
"command": "editor.action.deleteLines",
"when": "editorFocus"
},
{
"key": "ctrl+shift+k",
"command": "-editor.action.deleteLines",
"when": "editorFocus"
},
{
"key": "ctrl+shift+k",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus"
},
{
"key": "alt+[",
"command": "spaceBlockJumper.moveUp",
"when": "editorTextFocus"
},
{
"key": "alt+]",
"command": "spaceBlockJumper.moveDown",
"when": "editorTextFocus"
},
{
"key": "shift+alt+[",
"command": "spaceBlockJumper.selectUp",
"when": "editorTextFocus"
},
{
"key": "shift+alt+]",
"command": "spaceBlockJumper.selectDown",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+space",
"command": "scrollLineDown",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+enter",
"command": "scrollLineUp",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+b",
"command": "workbench.action.focusSideBar"
},
{
"key": "ctrl+0",
"command": "-workbench.action.focusSideBar"
},
{
"key": "f9",
"command": "editor.action.sortLinesAscending"
},
{
"key": "ctrl+alt+b",
"command": "bookmarks.toggle",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+k",
"command": "-bookmarks.toggle",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+pagedown",
"command": "bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+j",
"command": "-bookmarks.jumpToPrevious",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+pageup",
"command": "bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+l",
"command": "-bookmarks.jumpToNext",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+q",
"command": "extension.autodocblocker",
"when": "editorTextFocus"
},
{
"key": "ctrl+d",
"command": "-extension.autodocblocker",
"when": "editorTextFocus"
},
// Auto suggestion shortcuts
{
"key": "alt+i",
"command": "selectNextSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
},
{
"key": "alt+u",
"command": "selectPrevSuggestion",
"when": "editorTextFocus && suggestWidgetVisible"
},
{
"key": "meta+space",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "ctrl+space",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
]
{
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true
},
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext"
],
"spellright.language": [
"en_US"
],
"spellright.ignoreRegExpsByClass": {
"markdown": [
"/&/g",
"/ /g"
],
"cpp": [
"/#include\\s+\\\".+\\\"/g"
],
"html": [
"/<script>[^]*?</script>/gm"
],
"latex": [
"/\\\\begin{minted}[^]*?\\\\end{minted}/gm"
]
},
"editor.acceptSuggestionOnEnter": "smart",
"editor.suggestOnTriggerCharacters": true,
"editor.wordBasedSuggestions": true,
"editor.quickSuggestionsDelay": 20,
"editor.find.autoFindInSelection": false,
"editor.autoIndent": true,
"window.closeWhenEmpty": false,
"editor.emptySelectionClipboard": true,
"files.encoding": "utf8",
"editor.dragAndDrop": true,
"editor.renderIndentGuides": true,
"files.insertFinalNewline": false,
"editor.showFoldingControls": "mouseover",
"editor.find.seedSearchStringFromSelection": true,
"editor.fontSize": 18,
"files.hotExit": "onExit",
"editor.wrappingIndent": "same",
"editor.lineNumbers": "on",
"editor.matchBrackets": true,
"editor.selectionHighlight": true,
"window.openFilesInNewWindow": "on",
"workbench.editor.enablePreview": true,
"window.restoreFullscreen": false,
"editor.scrollBeyondLastLine": true,
"editor.mouseWheelScrollSensitivity": 0,
"window.title": "${activeEditorFull}${separator}${rootName}",
"workbench.editor.tabCloseButton": "right",
"editor.tabCompletion": "on",
"editor.tabSize": 2,
"editor.trimAutoWhitespace": false,
"files.trimTrailingWhitespace": false,
"editor.useTabStops": true,
"editor.wordSeparators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",
"editor.multiCursorModifier": "ctrlCmd",
"workbench.colorTheme": "Base16 Eighties Dark",
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"todohighlight.isEnable": false,
"todohighlight.include": [
"**/*.js",
"**/*.jsx",
"**/*.ts",
"**/*.tsx",
"**/*.html",
"**/*.php",
"**/*.css",
"**/*.md",
"**/*.scss"
],
"todohighlight.keywords": [
"@todo",
"TODO",
"@TODO",
"@TEMP",
"@temp",
"@note",
"@notes",
"@NOTE",
"@NOTES",
"@fix",
"@FIX",
"@REMOVE",
"@remove",
"@DEV-ONLY",
"@dev-only"
],
"todohighlight.isCaseSensitive": true,
"window.zoomLevel": 1,
// "editor.fontFamily": "'Source Code Variable', monospace, monospace, 'Droid Sans Fallback'",
"editor.fontFamily": "'Hack', 'Office Code Pro', 'Fira Code', 'Ubuntu Mono', 'Monoid Nerd Font', 'Andale Mono', 'FreeMono', 'Source Code Variable', monospace, monospace, 'Droid Sans Fallback'",
// "editor.fontFamily": "'Office Code Pro', 'Fira Code', 'Ubuntu Mono', 'Hack', 'Andale Mono', 'FreeMono', 'Source Code Variable', monospace, monospace, 'Droid Sans Fallback'",
"editor.occurrencesHighlight": true,
"keyboard.dispatch": "keyCode",
"typescript.tsserver.log": "verbose",
"editor.renderWhitespace": "all",
"editor.formatOnSave": true,
"javascript.format.enable": false,
"typescript.preferences.quoteStyle": "single",
"yaml.format.enable": true,
"yaml.customTags": [
"!!map Map",
"!!js/regexp",
"!LocalMerge sequence",
"!!LocalMerge sequence"
],
"yaml.schemas": {
"http://json.schemastore.org/eslintrc": "/*.eslintrc.yaml"
},
"local-history.daysLimit": 0,
"local-history.saveDelay": 30,
"local-history.exclude": [
"**/.history/**",
"**/.vscode/**",
"**/node_modules/**",
"**/typings/**",
"**/out/**",
"**/Code/User/**",
"**/dist/**",
"**/www/**",
"**/testBin/**",
"**/.git/**",
"**/**.mkv",
"**/**.mp4",
"**/**.flv",
"**/**.avi"
],
"local-history.path": "/home/te/.vscode-oss/.history",
"local-history.absolute": true,
"local-history.maxDisplay": 500,
"local-history.treeLocation": "localHistory",
"search.exclude": {
"**/.history": true
},
"git.autofetch": true,
// "movets.filesToScan": [
// "**/*.css",
// "**/*.gql",
// "**/*.graphql",
// "**/*.js",
// "**/*.png",
// "**/*.ts",
// "**/*.tsx"
// ],
// "tsimporter.filesToScan": [
// "**/*.css",
// "**/*.gql",
// "**/*.graphql",
// "**/*.js",
// "**/*.png",
// "**/*.ts",
// "**/*.tsx"
// ],
"path-autocomplete.pathMappings": {
"$root": "${workspace}"
},
"path-autocomplete.excludedItems": {
"**/*.js": {
"when": "**/*.ts"
}, // ignore js files if i'm inside a ts file
"**/*.map": {
"when": "**"
}, // always ignore *.map files
"**/{.git,node_modules}": {
"when": "**"
} // always ignore .git and node_modules folders
},
"githubPullRequests.telemetry.enabled": false,
"githubPullRequests.logLevel": "debug",
"githubPullRequests.remotes": [
"all"
],
"github.username": "artisin",
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 120,
"gitlens.views.fileHistory.enabled": true,
"gitlens.views.lineHistory.enabled": true,
// "flow.pathToFlow": "/home/te/.nvm/versions/node/v11.3.0/bin/flow",
"javascript.validate.enable": false,
"editor.suggest.localityBonus": true,
// "C_Cpp.default.intelliSenseMode": "clang-x64",
// "C_Cpp.intelliSenseEngine": "Tag Parser",
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
"[asciidoc]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": true
},
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggest.filterGraceful": true,
"eslint.autoFixOnSave": false,
// "tslint.autoFixOnSave": true,
"tslint.exclude": [
"node_modules",
"**/node_modules/*",
"dist",
"**/dist/*"
],
"search.useGlobalIgnoreFiles": true,
"typescript.suggest.completeFunctionCalls": true,
"typescript.tsserver.trace": "verbose",
"gitlens.blame.separateLines": false,
"gitlens.hovers.currentLine.over": "line",
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": false,
"auto-close-tag.SublimeText3Mode": true,
"auto-close-tag.fullMode": true,
"workbench.sideBar.location": "left",
// "cmake-tools-helper.cmake_download_path": "/home/te/.vscode-oss/extensions/maddouri.cmake-tools-helper-0.2.1/cmake_download",
"rust-client.updateOnStartup": true,
// "rust.goto_def_racer_fallback": true,
"rust.unstable_features": true,
"better-comments.tags": [
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "?",
"color": "#3498DB",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "/",
"color": "#00b894",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": " ##",
"color": "#ff6b6b",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": " +",
"color": "#bdc3c7",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": " - ",
"color": "#9b59b6",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": " @",
"color": "#9b59b6",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": " __Links__",
"color": "#9b59b6",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "```",
"color": "#7f8c8d",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": "//",
"color": "#474747",
"strikethrough": true,
"backgroundColor": "transparent"
},
{
"tag": "*",
"color": "#98C379",
"strikethrough": false,
"backgroundColor": "transparent"
},
{
"tag": " #",
"color": "#e7dc75",
"strikethrough": false,
"backgroundColor": "transparent"
}
],
"commentAnchors.tags.list": [
{
"tag": "ANCHOR",
"iconColor": "default",
"highlightColor": "#A8C023",
"scope": "file"
},
{
"tag": "IDEA",
"iconColor": "emerald",
"highlightColor": "#2ecc71",
"scope": "file"
},
{
"tag": "ARGUMENTS",
"iconColor": "yellow",
"highlightColor": "#f39c12",
"backgroundColor": "rgba(127, 140, 141, 0.4)",
"borderRadius": 3,
"borderStyle": "0px solid rgba(0, 0, 0, 0)",
"scope": "file",
"styleComment": false,
"isRegion": false,
"enabled": true
},
{
"tag": "RETURN",
"iconColor": "purple",
"highlightColor": "#9b59b6",
"backgroundColor": "rgba(127, 140, 141, 0.4)",
"borderRadius": 3,
"borderStyle": "0px solid rgba(0, 0, 0, 0)",
"scope": "file",
"styleComment": false,
"isRegion": false,
"enabled": true
},
{
"tag": "EXAMPLES",
"iconColor": "blue",
"highlightColor": "inherit",
"backgroundColor": "rgba(127, 140, 141, 0.4)",
"borderRadius": 3,
"borderStyle": "0px solid rgba(0, 0, 0, 0)",
"scope": "file",
"styleComment": false,
"isRegion": false,
"enabled": true
},
{
"tag": "TODO",
"iconColor": "blue",
"highlightColor": "#3ea8ff",
"backgroundColor": "#0052a5",
"scope": "workspace"
},
{
"tag": "FIXME",
"iconColor": "red",
"highlightColor": "#F44336",
"scope": "workspace"
},
{
"tag": "# STUB",
"iconColor": "purple",
"highlightColor": "#BA68C8",
"scope": "file"
},
{
"tag": "NOTE",
"iconColor": "orange",
"highlightColor": "#FFB300",
"scope": "file"
},
{
"tag": "REVIEW",
"iconColor": "green",
"highlightColor": "#64DD17",
"scope": "workspace"
},
{
"tag": "QUESTION",
"iconColor": "pink",
"highlightColor": "#E84393",
"scope": "file"
},
{
"tag": "TEST",
"iconColor": "orange",
"highlightColor": "#ff9f1a",
"scope": "file"
},
{
"tag": "DEV-ONLY",
"iconColor": "orange",
"highlightColor": "#ff9f1a",
"scope": "file"
},
{
"tag": "REMOVE",
"iconColor": "red",
"highlightColor": "#F44336",
"scope": "file"
},
{
"tag": "SECTION",
"iconColor": "blurple",
"highlightColor": "#896afc",
"scope": "workspace",
"isRegion": true
}
],
"apollographql.trace.server": "messages",
"typescript.implementationsCodeLens.enabled": true,
// "typescript.tsdk": "/home/te/.nvm/versions/node/v11.10.1/lib",
"tsco.groupPropertiesWithDecorators": true,
"tsco.addPublicModifierIfMissing": false,
"docthis.inferTypesFromNames": true,
"window.titleBarStyle": "custom",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": "text.html.markdown.journal.task.open.bullet",
"settings": {
"foreground": "#FFFF00"
}
},
{
"scope": "text.html.markdown.journal.task.open.marker",
"settings": {
"foreground": "#FFFF00"
}
},
{
"scope": "text.html.markdown.journal.task.open.keyword",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "text.html.markdown.journal.task.open.text",
"settings": {}
},
{
"scope": "text.html.markdown.journal.task.completed.keyword",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "text.html.markdown.journal.task.completed.marker",
"settings": {
"foreground": "#AAAAAA"
}
},
{
"scope": "text.html.markdown.journal.task.completed.text",
"settings": {
"foreground": "#AAAAAA"
}
},
{
"scope": "text.html.markdown.journal.task.completed.bullet",
"settings": {
"foreground": "#FFFF00"
}
},
{
"scope": "text.html.markdown.journal.memo.keyword",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "text.html.markdown.journal.memo.bullet",
"settings": {
"foreground": "#FFFF00"
}
},
{
"scope": "text.html.markdown.journal.scope",
"settings": {
"foreground": "#FFFF00"
}
},
{
"scope": "text.html.markdown.journal.link.keyword",
"settings": {
"fontStyle": "italic"
}
},
{
"scope": "text.html.markdown.journal.link.bullet",
"settings": {
"foreground": "#FFFF00"
}
}
]
},
// https://github.com/pajoma/vscode-journal
"journal.ext": "adoc",
"journal.patterns": {
"entries": {
"path": "${base}/${year}/${month}",
"file": "${day}.${ext}"
}
},
"journal.openInNewEditorGroup": true,
// https://github.com/swyphcosmo/vscode-spellchecker
"spellchecker.documentTypes": [
"markdown",
"latex",
"adoc",
"asciidoc"
],
"spellchecker.ignoreFileExtensions": [
"README_OLD",
"old.md",
],
"spellchecker.ignoreWordsList": [
"sectnums",
"Config",
"config",
"AsciiDoc",
"Webpack",
"sourcemap",
"plugin",
"TSLint",
"coderay"
],
"sync.gist": "25911f3aef7e9027cec4ee6ac38945fa",
"files.associations": {
".env-cmdrc": "json"
},
"go.languageServerFlags": [
"-rpc.trace"
],
"go.inferGopath": false,
"go.lintTool": "revive",
"go.buildOnSave": "off",
"go.lintOnSave": "off",
"go.liveErrors": {
"enabled": false,
"delay": 800
},
"go.useLanguageServer": true,
"go.docsTool": "gogetdoc",
"go.alternateTools": {
"go-langserver": "gopls",
},
"go.languageServerExperimentalFeatures": {
// for diagnostics as you type
"diagnostics": true,
"autoComplete": true,
"documentSymbols": true,
"findReferences": true,
"format": true,
"goToDefinition": true,
"goToTypeDefinition": true,
"hover": false,
"rename": true,
"signatureHelp": true,
"workspaceSymbols": true,
// add parameter placeholders when completing a function
"usePlaceholders": true,
// experimental to improve quality of hover (will be on by default soon)
"enhancedHover": true,
},
"gopls": {
"usePlaceholders": true, // add parameter placeholders when completing a function
"enhancedHover": true, // experimental to improve quality of hover (will be on by default soon)
},
"[go]": {
"editor.snippetSuggestions": "inline",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"python.jediEnabled": false,
"python.venvPath": "~/.virtualenvs",
"python.formatting.provider": "black",
"theme-by-language.themes": {
"*": "Base16 Eighties Dark",
"python": "Chromodynamics",
"typescript": "Base16 Eighties Dark"
},
"editor.fontLigatures": true,
"eslint.alwaysShowStatus": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"typescript.format.enable": false,
"vsicons.dontShowNewVersionMessage": true,
"html.format.enable": false,
"typescript.experimental.useSeparateSyntaxServer": true,
"search.smartCase": true,
"eslint.experimental.incrementalSync": true,
"eslint.packageManager": "yarn"
}
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. 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:
"cl": {
"prefix": "cl",
"scope": "javascript,typescript",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
},
"ce": {
"prefix": "ce",
"scope": "javascript,typescript",
"body": [
"console.error('$1');",
"$2"
],
"description": "Log error to console"
},
"cw": {
"prefix": "cw",
"scope": "javascript,typescript",
"body": [
"console.warn('$1');",
"$2"
],
"description": "Log warning to console"
},
"db": {
"prefix": "db",
"scope": "javascript,typescript",
"body": [
"debugger;",
"$2"
],
"description": "Insert debugger"
},
"Phat Right arrow": {
"prefix": "__a",
"body": [
"🠲"
]
},
"Right arrow": {
"prefix": "->",
"body": [
"→"
]
},
"Left arrow": {
"prefix": "<-",
"body": [
"←"
]
},
"Up arrow": {
"prefix": "-^",
"body": [
"↑"
]
},
"Down arrow": {
"prefix": "-v",
"body": [
"↓"
]
},
"Right arrow from bar": {
"prefix": "|->",
"body": [
"↦"
]
},
"Left arrow from bar": {
"prefix": "<-|",
"body": [
"↤"
]
},
"Up arrow from bar": {
"prefix": "|-^",
"body": [
"↥"
]
},
"Down arrow from bar": {
"prefix": "|-v",
"body": [
"↧"
]
},
"Lodash_Template": {
"prefix": "l-tmpl",
"body": [
"<%= $1 %>"
],
"description": "Lodash Template String"
}
}
{
// 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
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"range.map": {
"description": "range map",
"prefix": "range.map",
"body": [
"for k,v := range $1{",
"\t$0",
"}"
],
},
"range.arr": {
"description": "range array, slices",
"prefix": "range.arr",
"body": [
"for i,v := range $1{",
"\t$0",
"}"
],
},
"range.str": {
"description": "range interate over unicode points,not bytes",
"prefix": "range.str",
"body": [
"for i,r := range $1{",
"\t$0",
"}"
],
},
"slice.av": {
"description": "Slice Append Vector",
"prefix": "slice.av",
"body": [
"${1: arr} = append($1, ${vec:2}...)"
],
},
"slice.copy": {
"description": "Slice Copy",
"prefix": "slice.copy",
"body": [
"${1:dest} = make([]${2:int}, len(${3:src}))",
"copy($1, $3)"
],
},
"slice.cut": {
"body": "a = append(a[:i], a[j:]...)",
"prefix": "slice.cut",
"description": "a = append(a[:i], a[j:]...)",
},
"slice.delete": {
"body": "a = append(a[:i], a[i+1:]...)",
"prefix": "slice.delete",
"description": "a = append(a[:i], a[i+1:]...)",
},
"slice.extend": {
"body": "a = append(a, make([]T, j)...)",
"prefix": "slice.extend",
"description": "a = append(a, make([]T, j)...)",
},
"slice.insert": {
"body": "a = append(a[:i], append([]T{x}, a[i:]...)...)",
"prefix": "slice.insert",
"description": "a = append(a[:i], append([]T{x}, a[i:]...)...)",
},
"slice.unshift": {
"body": "a = append([]T{x}, a...)",
"prefix": "slice.unshift",
"description": "a = append([]T{x}, a...)",
},
"slice.push": {
"body": "a = append(a, x)",
"prefix": "slice.push",
"description": "a = append(a, x)",
},
"slice.pop": {
"body": "x, a = a[0], a[1:]",
"prefix": "slice.pop",
"description": "x, a = a[0], a[1:]",
},
"slice.popback": {
"body": "x, a = a[len(a) -1], a[:len(a) -1]",
"prefix": "slice.popback",
"description": "x, a = a[len(a) -1], a[:len(a) -1]",
},
"absi": {
"description": "abs for int",
"prefix": "absi",
"body": [
"func abs(num int) int {",
"\tif num < 0 {",
"\t\treturn -num",
"\t}",
"\treturn num",
"}"
],
},
"maxi": {
"description": "max for int",
"prefix": "maxi",
"body": [
"func max(a, b int) int {",
"\tif a > b {",
"\t\treturn a",
"\t}",
"\treturn b",
"}"
],
},
"mini": {
"description": "min for int",
"prefix": "mini",
"body": [
"func mini(a, b int) int {",
"\tif a < b {",
"\t\treturn a",
"\t}",
"\treturn b",
"}"
],
},
"sumi": {
"description": "sum for ints",
"prefix": "sumi",
"body": [
"func sum(nums []int) int {",
"\ts := 0",
"\tfor _, num := range nums {",
"\t\ts += num",
"\t}",
"\treturn s",
"}"
],
},
"avgi": {
"description": "avg for ints",
"prefix": "avgi",
"body": [
"func avg(nums []int) float64 {",
"\ts := 0",
"\tfor _, num := range nums {",
"\t\ts += num",
"\t}",
"\treturn float64(s) / float64(len(nums))",
"}"
],
},
"maxints": {
"description": "max for ints",
"prefix": "maxints",
"body": [
"func maxInts(nums ...int) int {",
"\tmaxNum := -int(^uint(0)>>1) - 1",
"\tfor _, num := range nums {",
"\t\tif num > maxNum {",
"\t\t\tmaxNum = num",
"\t\t}",
"\t}",
"\treturn maxNum",
"}"
],
},
"joinints": {
"description": "join ints to string",
"prefix": "joinints",
"body": [
"import (",
"\t\"strconv\"",
"\t\"strings\"",
")",
"func joinNums(arr []int, sep string) string {",
"\tnumCount := len(arr)",
"\tif numCount == 0 {",
"\t\treturn \"\"",
"\t}",
"\tstrs := make([]string, numCount)",
"\tfor i := 0; i < numCount; i++ {",
"\t\tstrs[i] = strconv.Itoa(arr[i])",
"\t}",
"\treturn strings.Join(strs, sep)",
"}"
],
},
"limits": {
"description": "MaxInt and MinInt",
"prefix": "limits",
"body": [
"const (",
"\tMaxInt = int(^uint(0) >> 1)",
"\tMinInt = -MaxInt - 1",
")"
],
},
"contains-str": {
"description": "String slice contains str",
"prefix": "contains-str",
"body": [
"func findIndex(strs []string, str string) int {",
"\tfor index, curStr := range strs {",
"\t\tif curStr == str {",
"\t\t\treturn index",
"\t\t}",
"\t}",
"\treturn -1",
"}",
"func containsStr(strs []string, str string) int {",
"\treturn findIndex(strs, str) != -1",
"}"
],
},
"treenode": {
"description": "type TreeNode struct",
"prefix": "treenode",
"body": [
"type TreeNode struct {",
"\tVal int",
"\tLeft *TreeNode",
"\tRight *TreeNode",
"}"
],
},
"dumptree": {
"description": "Dump Tree using level order",
"prefix": "dumptree",
"body": [
"import \"fmt\"",
"func dumpTree(root *TreeNode) {",
"\tif root == nil {",
"\t\tfmt.Println(\"nil\")",
"\t\treturn",
"\t}",
"\tbranches := []*TreeNode{root}",
"\tfmt.Print(\"[\")",
"\tfor len(branches) > 0 {",
"\t\tbranch := branches[0]",
"\t\tbranches = branches[1:]",
"\t\tif branch.Left != nil {",
"\t\t\tbranches = append(branches, branch.Left)",
"\t\t}",
"\t\tif branch.Right != nil {",
"\t\t\tbranches = append(branches, branch.Right)",
"\t\t}",
"\t\tif len(branches) > 0 {",
"\t\t\tfmt.Print(branch.Val, \",\")",
"\t\t} else {",
"\t\t\tfmt.Print(branch.Val, \"\")",
"\t\t}",
"\t}",
"\tfmt.Println(\"]\")",
"}"
],
},
"listnode": {
"description": "type ListNode struct",
"prefix": "listnode",
"body": [
"type ListNode struct {",
"\tVal int",
"\tNext *ListNode",
"}"
],
},
"dumplistnode": {
"description": "Dump ListNode using level order",
"prefix": "dumplistnode",
"body": [
"import \"fmt\"",
"func dumpListNode(lnode *ListNode) {",
"\tfmt.Print(\"ListNode[\")",
"\tfor lnode != nil {",
"\t\tfmt.Print(lnode.Val, \",\")",
"\t\tlnode = lnode.Next",
"\t}",
"\tfmt.Print(\"]\\n\")",
"}"
],
},
"reversearr": {
"description": "Reverse Ints Array",
"prefix": "reversearr",
"body": [
"func reverseArray(nums []int) {",
"\tfor i, j := 0, len(nums)-1; i < j; i, j = i+1, j-1 {",
"\t\ttmp := nums[i]",
"\t\tnums[i] = nums[j]",
"\t\tnums[j] = tmp",
"\t}",
"}"
],
},
"reversestr": {
"description": "Reverse String",
"prefix": "reversestr",
"body": [
"func reverseString(s string) string {",
"\tbytes := []byte(s)",
"\tfor i, j := 0, len(bytes)-1; i < j; i, j = i+1, j-1 {",
"\t\ttmp := bytes[i]",
"\t\tbytes[i] = bytes[j]",
"\t\tbytes[j] = tmp",
"\t}",
"\treturn string(bytes)",
"}"
],
},
"pbasic": {
"description": "Basic file for problem",
"prefix": "pbasic",
"body": [
"package main",
"import (",
"\t\"fmt\"",
")",
"func main() {",
"\tfmt.Println(\"Hello World\")",
"}"
],
},
"pbinarytree": {
"description": "Binary Tree solution file stub",
"prefix": "pbinarytree",
"body": [
"package main",
"import (",
"\t\"fmt\"",
")",
"type TreeNode struct {",
"\tVal int",
"\tLeft *TreeNode",
"\tRight *TreeNode",
"}",
"func levelOrderDump(root *TreeNode) {",
"\tif root == nil {",
"\t\treturn",
"\t}",
"\tlevelStacks := []*TreeNode{root}",
"\tfor len(levelStacks) > 0 {",
"\t\tbranch := levelStacks[0]",
"\t\tlevelStacks = levelStacks[1:]",
"\t\tfmt.Print(branch.Val, \",\")",
"\t\tleft := branch.Left",
"\t\tright := branch.Right",
"\t\tif left != nil {",
"\t\t\tlevelStacks = append(levelStacks, left)",
"\t\t}",
"\t\tif right != nil {",
"\t\t\tlevelStacks = append(levelStacks, right)",
"\t\t}",
"\t}",
"\tfmt.Println(\"\")",
"}",
"func main() {",
"\troot := &TreeNode{Val: 4}",
"\troot.Left = &TreeNode{Val: 2}",
"\troot.Left.Left = &TreeNode{Val: 1}",
"\troot.Left.Right = &TreeNode{Val: 3}",
"\troot.Right = &TreeNode{Val: 7}",
"\troot.Right.Left = &TreeNode{Val: 6}",
"\troot.Right.Right = &TreeNode{Val: 9}",
"\tlevelOrderDump(root)",
"}"
],
},
"p1darr": {
"description": "One Dimen Array Basic file stub",
"prefix": "p1darr",
"body": [
"package main",
"import (",
"\t\"fmt\"",
")",
"func $1(nums []int) int {",
"}",
"func main() {",
"\tfmt.Println(\"3 -> \", $1([]int{1, 1, 0, 1, 1, 1}))",
"}"
],
},
"p2darr": {
"description": "One Dimen Array Basic file stub",
"prefix": "p2darr",
"body": [
"package main",
"import (",
"\t\"fmt\"",
")",
"func main() {",
"\tarrA := [][]int{",
"\t\t{1, 1, 0},",
"\t\t{0, 1, 0},",
"\t\t{0, 1, 0},",
"\t}",
"\tarrB := [][]int{",
"\t\t{0, 0, 0},",
"\t\t{0, 1, 1},",
"\t\t{0, 0, 1},",
"\t}",
"\tfmt.Println(\"3 -> \")",
"\tarrA2 := [][]int{",
"\t\t{0, 1},",
"\t\t{1, 1},",
"\t}",
"\tarrB2 := [][]int{",
"\t\t{1, 1},",
"\t\t{1, 0},",
"\t}",
"\tfmt.Println(\"2 -> \")",
"}"
],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment