Skip to content

Instantly share code, notes, and snippets.

@skellock
Last active November 5, 2017 17:58
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 skellock/80afd7e2e436c55d7312ded8dda8d834 to your computer and use it in GitHub Desktop.
Save skellock/80afd7e2e436c55d7312ded8dda8d834 to your computer and use it in GitHub Desktop.
VSCode's Settings - Syncing
[
{
"name": "node-debug2",
"publisher": "ms-vscode",
"version": "1.18.4",
"id": "ms-vscode.node-debug2",
"__metadata": {
"id": "36d19e17-7569-4841-a001-947eb18602b2",
"publisherId": "5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",
"publisherDisplayName": "Microsoft"
}
},
{
"name": "dart-code",
"publisher": "DanTup",
"version": "2.4.3",
"id": "DanTup.dart-code",
"__metadata": {
"id": "f57f68ea-9ee8-42b5-9a97-041d3e4278c4",
"publisherId": "74d042ec-e193-412f-97ee-17e46acc143e",
"publisherDisplayName": "Danny Tuppeny"
}
},
{
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.11.1",
"id": "EditorConfig.EditorConfig",
"__metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "1ed869e4-8588-4af4-a51e-9c1c86b034b9",
"publisherDisplayName": "EditorConfig"
}
},
{
"name": "vsc-material-theme",
"publisher": "Equinusocio",
"version": "1.1.1",
"id": "Equinusocio.vsc-material-theme",
"__metadata": {
"id": "dffaf5a1-2219-434b-9d87-cb586fd59260",
"publisherId": "e41388a1-a892-4c1e-940b-1e7c1bf43c97",
"publisherDisplayName": "Mattia Astorino"
}
},
{
"name": "JSDocTagComplete",
"publisher": "HookyQR",
"version": "0.0.2",
"id": "HookyQR.JSDocTagComplete",
"__metadata": {
"id": "9981eadc-a934-4353-83d7-84fee5ac69e7",
"publisherId": "901b401e-7657-4a33-8c9a-0854c569607e",
"publisherDisplayName": "HookyQR"
}
},
{
"name": "swift",
"publisher": "Kasik96",
"version": "0.0.3",
"id": "Kasik96.swift",
"__metadata": {
"id": "df3f3262-9436-4ca4-8c16-ebd5e3b40400",
"publisherId": "d0da30bb-6c9f-4482-8b47-080dc94e6008",
"publisherDisplayName": "Martin Kase"
}
},
{
"name": "vscode-ios-common-files",
"publisher": "Orta",
"version": "1.0.4",
"id": "Orta.vscode-ios-common-files",
"__metadata": {
"id": "7a650208-b7a4-4e15-a6ee-612a82b2ef86",
"publisherId": "c22b4001-1af3-48d1-87ed-490c6c3b747f",
"publisherDisplayName": "Orta"
}
},
{
"name": "vscode-react-native-storybooks",
"publisher": "Orta",
"version": "2.5.1",
"id": "Orta.vscode-react-native-storybooks",
"__metadata": {
"id": "7a6d909f-40d8-4f46-8244-f5ece41d0df5",
"publisherId": "c22b4001-1af3-48d1-87ed-490c6c3b747f",
"publisherDisplayName": "Orta"
}
},
{
"name": "ejs-language-support",
"publisher": "QassimFarid",
"version": "0.0.1",
"id": "QassimFarid.ejs-language-support",
"__metadata": {
"id": "290c5f3f-fc96-451e-ba22-0b17cb2dac8a",
"publisherId": "dc1c277d-f2e7-4df5-b18d-54d2e03beceb",
"publisherDisplayName": "Qassim Farid"
}
},
{
"name": "fish",
"publisher": "TeddyDD",
"version": "0.0.4",
"id": "TeddyDD.fish",
"__metadata": {
"id": "37de94ea-666c-43de-9f03-4280b88f33e3",
"publisherId": "dc8832cd-8c0b-4bae-b660-fee6d3d26694",
"publisherDisplayName": "Daniel Lewan"
}
},
{
"name": "jsx",
"publisher": "TwentyChung",
"version": "0.0.1",
"id": "TwentyChung.jsx",
"__metadata": {
"id": "0e0de266-c53a-46cb-ac7c-9ac2bd998673",
"publisherId": "ebaa77e8-5f1e-4a48-9dda-2deacc9bd4db",
"publisherDisplayName": "TwentyChung"
}
},
{
"name": "vscode-file-peek",
"publisher": "abierbaum",
"version": "1.0.1",
"id": "abierbaum.vscode-file-peek",
"__metadata": {
"id": "447845d1-2206-4012-be63-d87445860fd2",
"publisherId": "dc92eb7c-d736-4c18-ba64-1ca735e9546d",
"publisherDisplayName": "abierbaum"
}
},
{
"name": "yaml",
"publisher": "adamvoss",
"version": "0.0.9",
"id": "adamvoss.yaml",
"__metadata": {
"id": "c3d9396e-9043-4351-896e-cec7ab4f8c54",
"publisherId": "bcc84b7b-7923-41b3-80e2-0dce99cc0f2f",
"publisherDisplayName": "Adam Voss"
}
},
{
"name": "one-monokai",
"publisher": "azemoh",
"version": "0.3.4",
"id": "azemoh.one-monokai",
"__metadata": {
"id": "b027c4b2-25ad-46db-b574-05dae3b2dc92",
"publisherId": "25cdca6a-b422-4806-9041-a44a52d1a7d5",
"publisherDisplayName": "Joshua Azemoh"
}
},
{
"name": "better-toml",
"publisher": "bungcip",
"version": "0.3.1",
"id": "bungcip.better-toml",
"__metadata": {
"id": "464f4ac7-af65-4aa9-9907-4ba7fa419085",
"publisherId": "87bfa971-0ee5-4ec2-afdb-1d26a8959fa4",
"publisherDisplayName": "bungcip"
}
},
{
"name": "vscode-standardjs",
"publisher": "chenxsan",
"version": "1.2.0",
"id": "chenxsan.vscode-standardjs",
"__metadata": {
"id": "6afc37b9-362f-4bd8-9a0d-9d24eade270d",
"publisherId": "92c9e5ec-8701-4679-ade5-8c7609963c83",
"publisherDisplayName": "Sam Chen"
}
},
{
"name": "path-intellisense",
"publisher": "christian-kohler",
"version": "1.4.2",
"id": "christian-kohler.path-intellisense",
"__metadata": {
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86",
"publisherId": "a892fb38-060b-475f-9e73-2e06a8a17a68",
"publisherDisplayName": "Christian Kohler"
}
},
{
"name": "theme-dracula",
"publisher": "dracula-theme",
"version": "2.5.2",
"id": "dracula-theme.theme-dracula",
"__metadata": {
"id": "4e44877c-1c8d-4f9c-ba86-1372d0fbeeb1",
"publisherId": "fbb3d024-f8f2-460c-bdb5-99552f6d8c4b",
"publisherDisplayName": "Dracula Theme"
}
},
{
"name": "vscode-babel-coloring",
"publisher": "dzannotti",
"version": "0.0.4",
"id": "dzannotti.vscode-babel-coloring",
"__metadata": {
"id": "d7b592dd-41c9-4f2b-acf3-055ae65e55c6",
"publisherId": "f3764338-6fd9-45d3-be23-3da192e4db4b",
"publisherDisplayName": "dzannotti"
}
},
{
"name": "tslint",
"publisher": "eg2",
"version": "1.0.14",
"id": "eg2.tslint",
"__metadata": {
"id": "513cf511-3894-4ee2-8c34-13ab83ddfd37",
"publisherId": "0b5821dc-b7ab-4fa0-bcee-c2add1d8f9db",
"publisherDisplayName": "egamma"
}
},
{
"name": "vscode-npm-script",
"publisher": "eg2",
"version": "0.3.2",
"id": "eg2.vscode-npm-script",
"__metadata": {
"id": "ae9e3eb0-3357-4cc0-90ee-598d2d384757",
"publisherId": "0b5821dc-b7ab-4fa0-bcee-c2add1d8f9db",
"publisherDisplayName": "egamma"
}
},
{
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "0.24.0",
"id": "esbenp.prettier-vscode",
"__metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "d16f4e39-2ffb-44e3-9c0d-79d873570e3a",
"publisherDisplayName": "Esben Petersen"
}
},
{
"name": "RelativePath",
"publisher": "jakob101",
"version": "1.0.0",
"id": "jakob101.RelativePath",
"__metadata": {
"id": "e8b469bd-915d-4070-bfc2-05c9b546f8ee",
"publisherId": "ce7c7817-71f3-4c7b-beaa-d22eb4299832",
"publisherDisplayName": "jakob101"
}
},
{
"name": "vscode-rust",
"publisher": "kalitaalexey",
"version": "0.4.2",
"id": "kalitaalexey.vscode-rust",
"__metadata": {
"id": "da00c08c-ff11-4cf3-b619-fdbd967d44c5",
"publisherId": "9369145d-06b2-4fd8-9739-1311c5cb16c8",
"publisherDisplayName": "kalitaalexey"
}
},
{
"name": "theme-karyfoundation-themes",
"publisher": "karyfoundation",
"version": "16.0.1",
"id": "karyfoundation.theme-karyfoundation-themes",
"__metadata": {
"id": "a150991b-031b-457a-b823-ef4c45425a1b",
"publisherId": "00c37c0d-e370-4cc2-8ab3-3fa32a26514a",
"publisherDisplayName": "Kary Foundation"
}
},
{
"name": "graphql-for-vscode",
"publisher": "kumar-harsh",
"version": "1.6.4",
"id": "kumar-harsh.graphql-for-vscode",
"__metadata": {
"id": "3e8a391a-f3f0-44b2-8631-7847b0c8839a",
"publisherId": "648f4d5a-b453-44ae-b4d2-038c3297108f",
"publisherDisplayName": "Kumar Harsh"
}
},
{
"name": "Go",
"publisher": "lukehoban",
"version": "0.6.67",
"id": "lukehoban.Go",
"__metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "2bb7981d-dd9a-486d-8660-0cf1f838abf5",
"publisherDisplayName": "lukehoban"
}
},
{
"name": "debugger-for-chrome",
"publisher": "msjsdiag",
"version": "3.5.0",
"id": "msjsdiag.debugger-for-chrome",
"__metadata": {
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd",
"publisherId": "ecde0778-6fe5-4f72-93a7-196989f19e58",
"publisherDisplayName": "Microsoft"
}
},
{
"name": "node-modules-resolve",
"publisher": "naumovs",
"version": "1.0.2",
"id": "naumovs.node-modules-resolve",
"__metadata": {
"id": "33725128-6e25-4fd3-b913-65593c2f0f2f",
"publisherId": "e9a76d04-24d4-44eb-a202-964f71acf59e",
"publisherDisplayName": "Sergii Naumov"
}
},
{
"name": "syncing",
"publisher": "nonoroazoro",
"version": "1.4.9",
"id": "nonoroazoro.syncing",
"__metadata": {
"id": "e7db78ad-ac9f-4919-99bb-3627e07b6d1f",
"publisherId": "f6d9d666-6595-44fa-89fc-36a0c3e0c1fa",
"publisherDisplayName": "nonoroazoro"
}
},
{
"name": "vscode-subword-navigation",
"publisher": "ow",
"version": "1.1.5",
"id": "ow.vscode-subword-navigation",
"__metadata": {
"id": "50e4d073-2e69-435a-a56c-1255bcde1318",
"publisherId": "b5d6a474-bed2-4e00-860f-546b0eafb23b",
"publisherDisplayName": "ow"
}
},
{
"name": "gitlink",
"publisher": "qezhu",
"version": "0.4.2",
"id": "qezhu.gitlink",
"__metadata": {
"id": "b29620d9-78be-492b-91ea-59cf2c5308b7",
"publisherId": "5cd2f7ac-2564-400b-9206-b8830479709a",
"publisherDisplayName": "Qinen Zhu"
}
},
{
"name": "project-snippets",
"publisher": "rebornix",
"version": "0.5.0",
"id": "rebornix.project-snippets",
"__metadata": {
"id": "eb345b46-8054-4af7-b425-60539b6d46bb",
"publisherId": "d30b9513-547b-4112-9c9c-0fcffa960258",
"publisherDisplayName": "Peng Lv"
}
},
{
"name": "Ruby",
"publisher": "rebornix",
"version": "0.15.0",
"id": "rebornix.Ruby",
"__metadata": {
"id": "ae062c8a-c68e-4b92-9ecf-8f1d4288b05d",
"publisherId": "d30b9513-547b-4112-9c9c-0fcffa960258",
"publisherDisplayName": "Peng Lv"
}
},
{
"name": "vscode-sort-json",
"publisher": "richie5um2",
"version": "1.10.2",
"id": "richie5um2.vscode-sort-json",
"__metadata": {
"id": "3fb77af3-b8b3-4cb9-9137-f555bd80e2b1",
"publisherId": "c410f7b8-d406-4e23-b77b-3719c4d5efb7",
"publisherDisplayName": "richie5um2"
}
},
{
"name": "vscode-icons",
"publisher": "robertohuertasm",
"version": "7.17.0",
"id": "robertohuertasm.vscode-icons",
"__metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "3d894ec1-7c48-4c7d-9d12-9738c4d94db3",
"publisherDisplayName": "Roberto Huertas"
}
},
{
"name": "swiftlint",
"publisher": "shinnn",
"version": "0.1.3",
"id": "shinnn.swiftlint",
"__metadata": {
"id": "fe330a3b-84aa-447a-9312-99734f91d279",
"publisherId": "253db61f-997d-4722-8120-7559a25856e6",
"publisherDisplayName": "Shinnosuke Watanabe"
}
},
{
"name": "vscode-table-formatter",
"publisher": "shuworks",
"version": "1.2.1",
"id": "shuworks.vscode-table-formatter",
"__metadata": {
"id": "4b416b07-e709-46fb-a84b-644ab2dfe1b4",
"publisherId": "ededadfa-d9ba-49e0-81cd-d0b2e0630df5",
"publisherDisplayName": "Shuzo Iwasaki"
}
},
{
"name": "slime",
"publisher": "smlombardi",
"version": "2.19.0",
"id": "smlombardi.slime",
"__metadata": {
"id": "735af542-944f-4b07-b336-9df27d7b8d84",
"publisherId": "9da64a38-f7e7-4220-b7b7-ea8baa506bf6",
"publisherDisplayName": "smlombardi"
}
},
{
"name": "vscode-open-in-github",
"publisher": "sysoev",
"version": "1.6.0",
"id": "sysoev.vscode-open-in-github",
"__metadata": {
"id": "b70cf6bc-1796-4191-bcfc-abeb77997ea7",
"publisherId": "c0885fa3-3b61-4f83-b035-0d441817979b",
"publisherDisplayName": "sysoev"
}
},
{
"name": "easy-snippet-maker",
"publisher": "tariky",
"version": "0.0.6",
"id": "tariky.easy-snippet-maker",
"__metadata": {
"id": "b2e38b45-9774-4972-950d-5d5d0844263b",
"publisherId": "4fee8d9f-447a-4eda-a1ac-fc04195cfa87",
"publisherDisplayName": "Tarik Caplja"
}
},
{
"name": "json2yaml",
"publisher": "tuxtina",
"version": "0.2.0",
"id": "tuxtina.json2yaml",
"__metadata": {
"id": "c87340cf-3bf4-496f-8e0d-0299af94135b",
"publisherId": "63578022-e755-49cc-97df-d03adf424bfc",
"publisherDisplayName": "tuxtina"
}
},
{
"name": "vscode-react-native",
"publisher": "vsmobile",
"version": "0.5.1",
"id": "vsmobile.vscode-react-native",
"__metadata": {
"id": "b35cd5b4-18db-46f9-ba9e-06096c3b22d3",
"publisherId": "852b63c9-509c-44fb-a302-f04544c660ad",
"publisherDisplayName": "Visual Studio Mobile Tools"
}
},
{
"name": "prettify-selected-json",
"publisher": "vthiery",
"version": "1.0.3",
"id": "vthiery.prettify-selected-json",
"__metadata": {
"id": "77faa0fb-6627-46fd-91b4-efee10f6397d",
"publisherId": "36752d41-b314-4dd2-8d88-72bec8892f08",
"publisherDisplayName": "vthiery"
}
},
{
"name": "Material-theme",
"publisher": "zhuangtongfa",
"version": "2.10.17",
"id": "zhuangtongfa.Material-theme",
"__metadata": {
"id": "26a529c9-2654-4b95-a63f-02f6a52429e6",
"publisherId": "8ae75bda-ec22-4a17-9340-abf1a20beca9",
"publisherDisplayName": "zhuangtongfa"
}
}
]
[
{ "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" },
{ "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" },
{ "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" },
{ "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" },
{ "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" },
{ "key": "cmd+6", "command": "workbench.action.openEditorAtIndex6" },
{ "key": "cmd+7", "command": "workbench.action.openEditorAtIndex7" },
{ "key": "cmd+8", "command": "workbench.action.openEditorAtIndex8" },
{ "key": "cmd+9", "command": "workbench.action.openEditorAtIndex9" },
{ "key": "cmd+shift+[", "command": "workbench.action.previousEditor" },
{ "key": "cmd+shift+]", "command": "workbench.action.nextEditor" },
{ "key": "ctrl+.", "command": "editor.action.showSnippets" },
{ "key": "cmd+\\", "command": "type", "when": "editorTextFocus" },
{
"key": "ctrl+;",
"command": "metaGo.goto",
"when": "editorTextFocus"
},
{
"key": "alt+;",
"command": "-metaGo.goto",
"when": "editorTextFocus"
},
{
"key": "ctrl+left",
"command": "subwordNavigation.cursorSubwordLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+right",
"command": "subwordNavigation.cursorSubwordRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+left",
"command": "subwordNavigation.cursorSubwordLeftSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+right",
"command": "subwordNavigation.cursorSubwordRightSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+backspace",
"command": "subwordNavigation.deleteSubwordLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+delete",
"command": "subwordNavigation.deleteSubwordRight",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+.",
"command": "editor.action.marker.next",
"when": "editorFocus && !editorReadonly"
},
{
"key": "f8",
"command": "-editor.action.marker.next",
"when": "editorFocus && !editorReadonly"
},
{
"key": "shift+cmd+,",
"command": "editor.action.marker.prev",
"when": "editorFocus && !editorReadonly"
},
{
"key": "shift+f8",
"command": "-editor.action.marker.prev",
"when": "editorFocus && !editorReadonly"
},
{
"key": "shift+cmd+t",
"command": "workbench.action.tasks.test"
}
]
{
// Defines VSCode's display language.
// See https://go.microsoft.com/fwlink/?LinkId=761051 for a list of supported languages.
// Changing the value requires to restart VSCode.
"locale":"en"
}
{
"[go]": {
"editor.insertSpaces": true,
"editor.tabSize": 8
},
"[json]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
},
"dart.debugExternalLibraries": false,
"dart.debugSdkLibraries": false,
"editor.cursorStyle": "line",
"editor.fontFamily": "'Fira Code', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": false,
"editor.fontSize": 13,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": false,
"editor.lineNumbers": "on",
"editor.minimap.enabled": false,
"editor.multiCursorModifier": "ctrlCmd",
"editor.quickSuggestions": {
"comments": false,
"other": true,
"strings": false
},
"editor.renderWhitespace": "none",
"editor.tabCompletion": false,
"editor.tabSize": 2,
"editor.wordBasedSuggestions": false,
"editor.wordWrap": "off",
"emmet.excludeLanguages": [
"markdown",
"javascript",
"javascriptreact",
"typescript"
],
"emmet.showAbbreviationSuggestions": false,
"explorer.sortOrder": "default",
"extensions.ignoreRecommendations": true,
"files.exclude": {
"**/.DS_Store": true,
"**/.fusebox": true,
"**/.git": true,
"**/.hg": true,
"**/.nyc_output": true,
"**/.svn": true,
"**/android/app/build": true,
"**/android/build": true,
"**/build": false,
"**/ios/build": true,
"**/jarlibs": true,
"**/lerna-debug.log": true,
"**/node_modules": true,
"**/release": true,
"*.dSYM.zip": true,
"*.ipa": true,
"*.keystore": true,
"dist": false,
"out": true,
"yarn.lock": false
},
"files.insertFinalNewline": false,
"files.trimTrailingWhitespace": false,
"git.confirmSync": false,
"javascript.validate.enable": false,
"json.format.enable": false,
"markdown.preview.fontFamily":
"'Fira Code', -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', 'HelveticaNeue-Light', 'Ubuntu', 'Droid Sans', sans-serif",
"materialTheme.cache.workbench.settings": {
"themeColours": "Light"
},
"relativePath.excludedExtensions": [".js", ".ts", ".tsx"],
"relativePath.ignore": [
"**/node_modules/**",
"**/*.dll",
"**/obj/**",
"**/objd/**",
"**/android/app/build/**",
"**/ios/build/**"
],
"relativePath.removeExtension": true,
"rust.mode": "rls",
"rust.rls": {
"useRustfmt": true
},
"rust.rustup": {
"nightlyToolchain": "nightly-x86_64-apple-darwin",
"toolchain": "stable-x86_64-apple-darwin"
},
"search.exclude": {
"**/android/app/bin": true,
"**/bower_components": true,
"**/node_modules": true
},
"standard.autoFixOnSave": false,
"standard.enable": true,
"standard.options": {
"parser": "babel-eslint"
},
"swiftlint.enable": false,
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"tslint.autoFixOnSave": true,
"typescript.format.enable": false,
"typescript.implementationsCodeLens.enabled": true,
"typescript.tsserver.log": "verbose",
"vsicons.dontShowNewVersionMessage": true,
"vsicons.presets.hideFolders": true,
"vsicons.projectDetection.disableDetect": true,
"window.title": "${activeEditorShort}${separator}${rootName}",
"window.zoomLevel": 0,
"workbench.colorTheme": "Dracula Soft",
"workbench.editor.enablePreview": true,
"workbench.iconTheme": "vscode-icons",
"workbench.sideBar.location": "left",
"workbench.startupEditor": "newUntitledFile",
"workbench.statusBar.visible": true,
"yaml.format.enable": true
}
{
/* Const */
"Const": {
"prefix": "const",
"body": "const ${1:foo} = $0",
"description": "const x = "
},
"Const Destructure": {
"prefix": "constd",
"body": "const { ${something} } = $0",
"description": "const { x } = "
},
"Const Ternary": {
"prefix": "const?",
"body": "const ${something} = ${expression} ? ${trueValue} : ${falseValue}",
"description": "const x = value ? truthy : falsy"
},
"Const Function One Line": {
"prefix": "constfn1",
"body": "const ${1:name} = ${2:arguments} => ${3:value}",
"description": "const x = a => b"
},
"Const Function One Line Empty": {
"prefix": "constfne",
"body": [
"/**",
" * ${2}",
" */",
"const ${1:name} = () => ${0:value}"
],
"description": "const x = () => b"
},
"Export Const Function One Line Empty": {
"prefix": "xcfne",
"body": [
"/**",
" * ${2}",
" */",
"export const ${1:name} = () => ${3:value}${0}"
],
"description": "const x = () => b"
},
"Const Function Block": {
"prefix": "constfn",
"body": [
"const ${name} = ${arguments} => {",
" $0",
"}"
],
"description": "Anonymous function assigned to a const + return"
},
"Require": {
"prefix": "constr",
"body": "const ${thing} = require('${module}')",
"description": "const require"
},
"Require and destructure": {
"prefix": "constrd",
"body": "const { ${thing} } = require('${module}')",
"description": "const require + destructure"
},
/* Functions */
"Function": {
"prefix": "fnb",
"body": [
"function ${functionName} (${arguments}) {",
" ${0}",
"}"
],
"description": "Function - Classic"
},
"Function Fat Arrow": {
"prefix": "fnf",
"body": "${arguments} => ${value}",
"description": "Function - Fat Arrow"
},
/* Importing */
"Import": {
"prefix": "imp",
"body": "import ${react} from '${1:react}'$0",
"description": "import a module"
},
"Import Named": {
"prefix": "impd",
"body": "import { ${2:something} } from '${1:somewhere}'$0",
"description": "import a module + destructuring"
},
/* Reactotron */
"Reactotron - Log a string": {
"prefix": "tronls",
"body": "console.tron.log('$1')",
"description": "Reactotron - Log a string."
},
"Reactotron - Log a interpolated string": {
"prefix": "tronli",
"body": "console.tron.log(`$1`)",
"description": "Reactotron - Log a interpolated string."
},
"Reactotron - Log an object": {
"prefix": "tronlo",
"body": "console.tron.log({ $1 })",
"description": "Reactotron - Log an object."
}
}
{
/*
// Place your snippets for JavaScript React 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"
}
*/
}
{
"Import {}": {
"prefix": "imp-named",
"description": "import named module",
"body": [
"import { ${2:Something} } from '$1'"
]
},
"Import React": {
"prefix": "imp-react",
"description": "import react",
"body": [
"import * as React from 'react'"
]
},
"Import React Native": {
"prefix": "imp-react-native",
"description": "import react native",
"body": [
"import { ${1:View, ViewStyle} } from 'react-native'"
]
},
"Import Ramda": {
"prefix": "imp-ramda",
"description": "import ramda",
"body": [
"import { ${1:map, filter, propEq} } from 'ramda'"
]
},
"mst-model": {
"prefix": "mst-model",
"body": [
"import { types, process } from 'mobx-state-tree'",
"",
"/** A placeholder async function */",
"const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms))",
"",
"/**",
" * An $1 model.",
" */",
"export const $1Model = types",
" .model('$1')",
" //",
" // ====)------- Props -------->",
" //",
" .props({",
" id: types.identifier(types.number),",
" name: types.string,",
" })",
" //",
" // ====)------- Views -------->",
" //",
" .views(self => ({",
" screamingCase() {",
" return self.name.toUpperCase()",
" },",
" }))",
" //",
" // ====)------- Setters -------->",
" //",
" .actions(self => ({",
" setName(value: string) {",
" self.name = value",
" },",
" }))",
" //",
" // ====)------- Sync Actions -------->",
" //",
" .actions(self => ({",
" doSomeSync() {},",
" }))",
" //",
" // ====)------- Async Actions -------->",
" //",
" .actions(self => {",
" /** do something async */",
" const doAsync = process(function*() {",
" yield delay(2)",
" })",
"",
" return {",
" doAsync,",
" }",
" })",
"",
"/**",
" * The $1 instance.",
" */",
"export type $1 = typeof $1Model.Type",
"",
"/**",
" * The data of an $1.",
" */",
"export type $1Snapshot = typeof $1Model.SnapshotType",
""
],
"description": "Creates a mobx-state-tree Model."
}
}
{
"Import {}": {
"prefix": "imp",
"description": "import named module",
"body": ["import { ${2:Something} } from '${1:./somewhere}'"]
},
"Import React": {
"prefix": "impr",
"description": "import react",
"body": ["import * as React from 'react'", "$0"]
},
"Import React Native": {
"prefix": "imprn",
"description": "import react native",
"body": ["import { ${1:View, ViewStyle} } from 'react-native'", "$0"]
},
"Stateless Functional Component": {
"prefix": "rd-sfc",
"description": "A stateless functional component.",
"body": [
"import * as React from 'react'",
"import { CSSProperties } from 'react'",
"",
"const wrapperStyle: CSSProperties = {",
" display: 'flex',",
" flex: 1",
"}",
"",
"export interface ${1:AwesomeComponent}Props {",
" ${2:awesome: boolean}",
"}",
"",
"export function $1(props: $1Props) {",
" return (",
" <div style={wrapperStyle}>",
" $1",
" </div>",
" )",
"}"
]
},
"React Component": {
"prefix": "rd-comp",
"body": [
"import * as React from 'react'",
"import { CSSProperties } from 'react'",
"",
"export interface ${1:AwesomeScreen}Props {}",
"",
"interface $1State {}",
"",
"const wrapperStyle: CSSProperties = {",
" display: 'flex',",
" flex: 1",
"}",
"",
"export class $1 extends React.Component<",
" $1Props,",
" $1State",
"> {",
" state: $1State = {}",
"",
" render () {",
" return (",
" <div style={wrapperStyle}>",
" $1",
" </div>",
" )",
" }",
" ",
"}",
""
],
"description": "A React Component."
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment