Skip to content

Instantly share code, notes, and snippets.

@AbraaoAlves
Created May 4, 2018 02:36
Show Gist options
  • Save AbraaoAlves/03c715e2a60250705fecb8a4b2f582f4 to your computer and use it in GitHub Desktop.
Save AbraaoAlves/03c715e2a60250705fecb8a4b2f582f4 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-05-04T02:36:40.709Z","extensionVersion":"v2.9.2"}
[
{
"metadata": {
"id": "d6471dc5-935f-4ade-8766-693d44ca04a8",
"publisherId": "AureliaEffect.aurelia",
"publisherDisplayName": "AureliaEffect"
},
"name": "aurelia",
"publisher": "AureliaEffect",
"version": "1.0.3"
},
{
"metadata": {
"id": "31ab3f3e-38aa-4b4e-9e3c-374a669b5af0",
"publisherId": "behzad88.Aurelia",
"publisherDisplayName": "behzad88"
},
"name": "Aurelia",
"publisher": "behzad88",
"version": "1.2.2"
},
{
"metadata": {
"id": "70378119-1d85-4935-9733-0298c7a369a2",
"publisherId": "steoates.autoimport",
"publisherDisplayName": "steoates"
},
"name": "autoimport",
"publisher": "steoates",
"version": "1.5.3"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "2.9.2"
},
{
"metadata": {
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd",
"publisherId": "msjsdiag.debugger-for-chrome",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-chrome",
"publisher": "msjsdiag",
"version": "4.3.0"
},
{
"metadata": {
"id": "fd110b00-4782-4794-bf1f-cdeae242954f",
"publisherId": "msjsdiag.debugger-for-edge",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-edge",
"publisher": "msjsdiag",
"version": "0.4.1"
},
{
"metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "EditorConfig.EditorConfig",
"publisherDisplayName": "EditorConfig"
},
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.12.1"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "8.2.4"
},
{
"metadata": {
"id": "1cbadbba-0bd6-46fa-a309-76704bf66217",
"publisherId": "mike-co.import-sorter",
"publisherDisplayName": "mike-co"
},
"name": "import-sorter",
"publisher": "mike-co",
"version": "1.2.1"
},
{
"metadata": {
"id": "9981eadc-a934-4353-83d7-84fee5ac69e7",
"publisherId": "HookyQR.JSDocTagComplete",
"publisherDisplayName": "HookyQR"
},
"name": "JSDocTagComplete",
"publisher": "HookyQR",
"version": "0.0.2"
},
{
"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": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "1.3.1"
},
{
"metadata": {
"id": "eb345b46-8054-4af7-b425-60539b6d46bb",
"publisherId": "rebornix.project-snippets",
"publisherDisplayName": "rebornix"
},
"name": "project-snippets",
"publisher": "rebornix",
"version": "0.5.0"
},
{
"metadata": {
"id": "e2c479df-2c90-4915-9015-595ef0d79bd5",
"publisherId": "ms-vsts.team",
"publisherDisplayName": "ms-vsts"
},
"name": "team",
"publisher": "ms-vsts",
"version": "1.133.0"
},
{
"metadata": {
"id": "513cf511-3894-4ee2-8c34-13ab83ddfd37",
"publisherId": "eg2.tslint",
"publisherDisplayName": "eg2"
},
"name": "tslint",
"publisher": "eg2",
"version": "1.0.28"
},
{
"metadata": {
"id": "07fc4a0a-11fc-4121-ba9a-f0d534c729d8",
"publisherId": "pflannery.vscode-versionlens",
"publisherDisplayName": "pflannery"
},
"name": "vscode-versionlens",
"publisher": "pflannery",
"version": "0.21.0"
},
{
"metadata": {
"id": "f2fd462f-f1bd-4c62-b54f-59a4e5ffc6a3",
"publisherId": "WakaTime.vscode-wakatime",
"publisherDisplayName": "WakaTime"
},
"name": "vscode-wakatime",
"publisher": "WakaTime",
"version": "1.2.1"
},
{
"metadata": {
"id": "6766254a-8e43-4ebc-9b89-e5be39cb5318",
"publisherId": "WallabyJs.wallaby-vscode",
"publisherDisplayName": "WallabyJs"
},
"name": "wallaby-vscode",
"publisher": "WallabyJs",
"version": "1.0.83"
}
]
{
/*
// Place your snippets for HTML here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
*/
"Mobile meta html info": {
"prefix": "meta:mobile",
"body": [
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui\">",
"<meta name=\"apple-mobile-web-app-capable\" content=\"yes\">",
"<meta name=\"apple-mobile-web-app-status-bar-style\" content=\"black\">"
],
"description": "Mobile head meta tags for mobile"
},
"Aurelia default body":{
"prefix": "aurelia:body",
"body": [
"<body aurelia-app>",
" <script src=\"jspm_packages/system.js\"></script>",
" <script src=\"jspm.config.js\"></script>",
" <script> System.import(\"aurelia-bootstrapper\"); </script>",
"</body>"
],
"description": "Default html body for Aurelia Apps"
}
}
{
/*
// Place your snippets for Ini 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, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
*/
"editor config": {
"prefix": "editorconfig",
"body": [
"# EditorConfig is awesome: http://EditorConfig.org ",
"# top-most EditorConfig file",
"root = true",
"# Unix-style newlines with a newline ending every file",
"[*]",
"end_of_line = lf",
"insert_final_newline = true",
"# 2 space indentation",
"[**.*]",
"indent_style = space",
"indent_size = 2"
],
"description": "Default editorconfig settings"
}
}
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
*/
"timeParse example": {
"prefix": "timeParse",
"body": [
"function timeParse(date, format) { ",
" var result = {};",
" if (format === 'unixtime') {",
" return JSON.stringify({",
" 'unixtime': date.getTime()",
" });",
" }",
" if (format === '´parsetime') {",
" var summary = {",
" 'hour': date.getHours(),",
" 'minute': date.getMinutes(),",
" 'second': date.getSeconds()",
" };",
" return JSON.stringify(summary);",
" }",
"}"
],
"description": "simple javascritp function example"
}
}
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+t", "command": "workbench.action.tasks.runTask"},
{ "key": "ctrl+shift+s", "command": "workbench.action.files.saveAll"},
{
"key": "ctrl+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "alt+r",
"command": "extension.auOpenRelated"
}
]
{
// 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"
}
{
/*
// Place your snippets for Plain Text 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, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
*/
"default git ignore": {
"prefix": "gitignore",
"body": [
"node_modules",
"jspm_packages",
"typings",
"www"
],
"description": "Default editorconfig settings"
}
}
{
/*
// Place your snippets for Sass 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, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"vertical aling":{
"prefix": "vc",
"body": [
"${1:selector} {",
" position: relative;",
" top: 50%;",
" transform: translateY(-50%);",
"}"
],
"description": "Vertical Align Anything"
}
}
// Place your settings in this file to overwrite the default settings
{
"typescript.tsdk":"C:/Users/abraa/AppData/Local/Yarn/config/global/node_modules/typescript/lib",
// Visual Studio Team Services personal access token.
"vsts.pat": "mgk5d64oemi72gl7trx2nfxv5d6zv5cb75ejlin5eiptnizmgapq",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"git.autofetch": true,
"team.accessTokens":[
{
"account":"altum-proj",
"token":"6s4vstk7usnlfxavwi3t3zrqpbutu5utijddtiqeca5rxswmuxra"
}
],
"sync.gist": "",
"sync.lastUpload": "2017-03-12T21:32:33.494Z",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.lastDownload": "",
"sync.version": 262,
"sync.showSummary": true,
"sync.forceDownload": false,
"sync.anonymousGist": false,
"workbench.iconTheme": "vs-seti",
"editor.fontFamily": "Fira Code",
"editor.fontSize": 14,
"editor.fontLigatures": true,
"window.zoomLevel": 0,
"git.confirmSync": false,
"sync.host": "",
"sync.pathPrefix": "",
"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
"git.enableSmartCommit": true,
"team.showWelcomeMessage": false,
"workbench.colorTheme": "Default Light+",
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true
},
"sync.quietSync": false,
"sync.askGistName": false,
"sync.removeExtensions": true,
"sync.syncExtensions": true
}
{
// Place your snippets for typescript 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 typescriptreact 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 TypeScript 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, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
// Example:
"My events sample": {
"prefix": "myevents",
"body": [
" function createEvent(id){ ",
" return Promise.resolve({",
" talks: [],",
" day: new Date(),",
" place: ''",
" });",
" } ",
"",
" Promise.all([createEvent(1), createEvent(2), createEvent(3)])",
" .then(list => ",
" list.map(i => {",
" return {data:i.day}",
" })",
" )",
" .then( list => ",
" list.forEach(i => ",
" console.log(timeParse(i.data, 'unixtime'))",
" ) ",
" );"
],
"description": "Log output to console"
}
*/
"My events sample": {
"prefix": "myevents",
"body": [
" function createEvent(id){ ",
" return Promise.resolve({",
" talks: [],",
" day: new Date(),",
" place: ''",
" });",
" } ",
"",
" Promise.all([createEvent(1), createEvent(2), createEvent(3)])",
" .then(list => ",
" list.map(i => {",
" return {data:i.day}",
" })",
" )",
" .then( list => ",
" list.forEach(i => ",
" console.log(timeParse(i.data, 'unixtime'))",
" ) ",
" );"
],
"description": "Log output to console"
},
"Simple async function ": {
"prefix": "asyncFunction",
"body": [
"async function PromiseAsyncTest() {",
" var result = await new Promise<number>((res) => res(1));",
" ",
" console.log(result.toFixed(2));",
" return result; ",
"}"
],
"description": "[demo] Simple async function with await"
},
"Simple async function [JS way]": {
"prefix": "asyncFunctionJS",
"body": [
"function PromiseAsyncTest() {",
" return new Promise(function(res){",
" return res(1)",
" }).then(function(result){",
" return console.log(result.toFixed(2));",
" });",
"}"
],
"description": "[demo] Simple async function with await"
},
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
},
"Simple function": {
"prefix": "function",
"body": [
"function ${1:name}(${2:param}){\n\t $3\n}"
],
"description": "simple function"
},
"Gulp task": {
"prefix": "task",
"body": [
"gulp.task('${1:name}', function(){\n\t $2\n})"
],
"description": "simple gulp task"
},
"Test Case": {
"prefix": "describe",
"body": [
"describe('${1:spec#title}', () => {\n\n\tit('${2:test#title}', ()=>{\n\t\t$3\n\t});\n});"
],
"description": "Init describe spec"
},
"Unit Test": {
"prefix": "itInject",
"body": [
"it('${1:test#title}', inject(()=>{\n\t$2\n}));"
],
"description": "Init it spec"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment