-
-
Save martinandersen3d/7a1008b93da9a59431c67f3935b562da to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-03-13T11:41:19.205Z","extensionVersion":"v2.9.0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"metadata": { | |
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd", | |
"publisherId": "Shan.code-settings-sync", | |
"publisherDisplayName": "Shan" | |
}, | |
"name": "code-settings-sync", | |
"publisher": "Shan", | |
"version": "2.9.0" | |
}, | |
{ | |
"metadata": { | |
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511", | |
"publisherId": "donjayamanne.githistory", | |
"publisherDisplayName": "donjayamanne" | |
}, | |
"name": "githistory", | |
"publisher": "donjayamanne", | |
"version": "0.4.0" | |
}, | |
{ | |
"metadata": { | |
"id": "198a707e-28af-4e84-8610-6e2f628dd12d", | |
"publisherId": "redhat.java", | |
"publisherDisplayName": "redhat" | |
}, | |
"name": "java", | |
"publisher": "redhat", | |
"version": "0.20.0" | |
}, | |
{ | |
"metadata": { | |
"id": "5cbdf58a-694a-4aba-af08-61d00842eb03", | |
"publisherId": "bierner.markdown-preview-github-styles", | |
"publisherDisplayName": "bierner" | |
}, | |
"name": "markdown-preview-github-styles", | |
"publisher": "bierner", | |
"version": "0.1.0" | |
}, | |
{ | |
"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": "f092a211-cdbf-431d-a3d6-34a3f7264573", | |
"publisherId": "sandy081.todotasks", | |
"publisherDisplayName": "sandy081" | |
}, | |
"name": "todotasks", | |
"publisher": "sandy081", | |
"version": "0.5.0" | |
}, | |
{ | |
"metadata": { | |
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a", | |
"publisherId": "robertohuertasm.vscode-icons", | |
"publisherDisplayName": "robertohuertasm" | |
}, | |
"name": "vscode-icons", | |
"publisher": "robertohuertasm", | |
"version": "7.21.0" | |
}, | |
{ | |
"metadata": { | |
"id": "61fcd0cf-64d7-4836-8d6b-d55f4fb83281", | |
"publisherId": "vscjava.vscode-java-debug", | |
"publisherDisplayName": "vscjava" | |
}, | |
"name": "vscode-java-debug", | |
"publisher": "vscjava", | |
"version": "0.6.0" | |
}, | |
{ | |
"metadata": { | |
"id": "96f11e1f-1a46-4592-b084-f025b2c2a81f", | |
"publisherId": "vscjava.vscode-java-pack", | |
"publisherDisplayName": "vscjava" | |
}, | |
"name": "vscode-java-pack", | |
"publisher": "vscjava", | |
"version": "0.3.0" | |
}, | |
{ | |
"metadata": { | |
"id": "67c06b0d-1891-42ca-b2a8-113e79bff069", | |
"publisherId": "vscjava.vscode-java-test", | |
"publisherDisplayName": "vscjava" | |
}, | |
"name": "vscode-java-test", | |
"publisher": "vscjava", | |
"version": "0.4.0" | |
}, | |
{ | |
"metadata": { | |
"id": "b0f06c6b-24fb-4d7b-bd79-bc5e2fa17312", | |
"publisherId": "vscjava.vscode-maven", | |
"publisherDisplayName": "vscjava" | |
}, | |
"name": "vscode-maven", | |
"publisher": "vscjava", | |
"version": "0.5.2" | |
}, | |
{ | |
"metadata": { | |
"id": "5c09e657-d8a6-424b-90e3-ffadebe24429", | |
"publisherId": "maty.vscode-mocha-sidebar", | |
"publisherDisplayName": "maty" | |
}, | |
"name": "vscode-mocha-sidebar", | |
"publisher": "maty", | |
"version": "0.14.34" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Empty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Empty |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.statusBar.visible": true, | |
"workbench.activityBar.visible": false, | |
"extensions.ignoreRecommendations": true, | |
"window.zoomLevel": 1, | |
"typescript.check.npmIsInstalled": false, | |
"editor.tabSize": 2, | |
"editor.minimap.enabled": false, | |
"editor.wordWrap": "on", | |
"editor.formatOnPaste": true, | |
"editor.autoIndent": true, | |
"explorer.openEditors.visible": 9, | |
"editor.detectIndentation": false, | |
"files.autoSave": "onFocusChange", | |
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, | |
"**/.hg": true, | |
"**/CVS": true, | |
"**/.DS_Store": true, | |
"**/.dropbox": true, | |
"**/.dropbox*": true, | |
"**/.tmp*": true, | |
"**/.vscode":true | |
}, | |
"editor.tabCompletion": true, | |
"editor.renderWhitespace": "all", | |
"editor.renderControlCharacters": false, | |
"git.confirmSync": false, | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontSize": 13, | |
"editor.lineNumbers": "on", | |
"sync.gist": "aa59f14582176b7d2996e45d1b1adb1e", | |
"sync.lastUpload": "2018-03-12T02:22:53.021Z", | |
"sync.autoDownload": false, | |
"sync.autoUpload": true, | |
"sync.lastDownload": "2018-01-11T04:38:10.366Z", | |
"sync.forceDownload": false, | |
"sync.anonymousGist": false, | |
"sync.host": "", | |
"sync.pathPrefix": "", | |
"sync.quietSync": true, | |
"sync.askGistName": false, | |
"editor.scrollBeyondLastLine": false, | |
"explorer.confirmDelete": false, | |
"workbench.iconTheme": "vscode-icons", | |
"telemetry.enableTelemetry": false, | |
"telemetry.enableCrashReporter": false, | |
"debug.openExplorerOnEnd": true, | |
"window.nativeTabs": true, | |
"explorer.confirmDragAndDrop": false, | |
"editor.fontFamily": "Knack Nerd Font, Menlo, Monaco, 'Courier New', monospace", | |
"vsicons.dontShowNewVersionMessage": true, | |
"sync.removeExtensions": true, | |
"sync.syncExtensions": true, | |
"java.errors.incompleteClasspath.severity": "ignore" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"for": { | |
"prefix": "for", | |
"body": [ | |
"for (${size_t} ${i} = ${1:0}; ${i} < ${2:length}; ${i}++)", | |
"{", | |
"$3", | |
"}" | |
], | |
"description": "Code snippet for 'for' loop" | |
}, | |
"forr": { | |
"prefix": "forr", | |
"body": [ | |
"for (int ${i} = ${1:length} - 1; ${i} >= ${2:0}; ${i}--)", | |
"{", | |
"$3", | |
"}" | |
], | |
"description": "Code snippet for reverse 'for' loop" | |
}, | |
"while": { | |
"prefix": "while", | |
"body": [ | |
"while ($1)", | |
"{", | |
"$2", | |
"}" | |
], | |
"description": "" | |
}, | |
"if": { | |
"prefix": "if", | |
"body": [ | |
"if ($1)", | |
"{", | |
"$2", | |
"}" | |
], | |
"description": "Code snippet for if statement" | |
}, | |
"else": { | |
"prefix": "else", | |
"body": [ | |
"else", | |
"{", | |
"$1", | |
"}" | |
], | |
"description": "Code snippet for else statement" | |
}, | |
"else if": { | |
"prefix": "else if", | |
"body": [ | |
"else if ($1)", | |
"{", | |
"$2", | |
"}" | |
], | |
"description": "Code snippet for else-if statement" | |
}, | |
"enum": { | |
"prefix": "enum", | |
"body": [ | |
"enum ${MyEnum}", | |
"{", | |
"$1", | |
"};" | |
], | |
"description": "Code snippet for enum" | |
}, | |
"#ifdef": { | |
"prefix": "#ifdef", | |
"body": [ | |
"#ifdef ${DEBUG}", | |
"$1", | |
"#endif // ${DEBUG}" | |
], | |
"description": "Code snippet for #ifdef" | |
}, | |
"#ifndef": { | |
"prefix": "#ifndef", | |
"body": [ | |
"#ifndef ${1:1}", | |
"$2", | |
"#endif // !$1" | |
], | |
"description": "Code snippet for #ifndef" | |
}, | |
"#if": { | |
"prefix": "#if", | |
"body": [ | |
"#ifdef ${1:0}", | |
"$2", | |
"#endif // $1" | |
], | |
"description": "Code snippet for #if" | |
}, | |
"struct": { | |
"prefix": "struct", | |
"body": [ | |
"struct ${MyStruct}", | |
"{", | |
"$1", | |
"};" | |
], | |
"description": "Code snippet for struct" | |
}, | |
"switch": { | |
"prefix": "switch", | |
"body": [ | |
"switch (${switch_on})", | |
"{", | |
"default:", | |
"break;$1", | |
"}" | |
], | |
"description": "Code snippet for switch statement" | |
}, | |
"union": { | |
"prefix": "union", | |
"body": [ | |
"union ${MyUnion}", | |
"{", | |
"$1", | |
"};" | |
], | |
"description": "Code snippet for union" | |
}, | |
"#inc": { | |
"prefix": "#inc", | |
"body": [ | |
"#include \"$1\"" | |
], | |
"description": "Code snippet for #include \" \"" | |
}, | |
"#inc<": { | |
"prefix": "#inc<", | |
"body": [ | |
"#include <$1>" | |
], | |
"description": "Code snippet for #include \" \"" | |
}, | |
"#def": { | |
"prefix": "#def", | |
"body": [ | |
"#define \"$1\" \"$2\" " | |
], | |
"description": "Code snippet for #define \" \"" | |
}, | |
"for": { | |
"prefix": "for", | |
"body": [ | |
"for (${size_t} ${i} = ${1:0}; ${i} < ${2:length}; ${i}++)", | |
"{", | |
"$3", | |
"}" | |
], | |
"description": "Code snippet for 'for' loop" | |
}, | |
"forr": { | |
"prefix": "forr", | |
"body": [ | |
"for (int ${i} = ${1:length} - 1; ${i} >= ${2:0}; ${i}--)", | |
"{", | |
"$3", | |
"}" | |
], | |
"description": "Code snippet for reverse 'for' loop" | |
}, | |
"do": { | |
"prefix": "do", | |
"body": [ | |
"do", | |
"{", | |
"$1", | |
"} while($2);" | |
], | |
"description": "Code snippet for do...while loop" | |
}, | |
"while": { | |
"prefix": "while", | |
"body": [ | |
"while ($1)", | |
"{", | |
"$2", | |
"}" | |
], | |
"description": "" | |
}, | |
"foreach": { | |
"prefix": "foreach", | |
"body": [ | |
"for(auto ${var} : ${collection_to_loop})", | |
"{", | |
"$1", | |
"}" | |
], | |
"description": "Code snippet for range-based for loop (c++11) statement" | |
}, | |
"if": { | |
"prefix": "if", | |
"body": [ | |
"if ($1)", | |
"{", | |
"$2", | |
"}" | |
], | |
"description": "Code snippet for if statement" | |
}, | |
"else": { | |
"prefix": "else", | |
"body": [ | |
"else", | |
"{", | |
"$1", | |
"}" | |
], | |
"description": "Code snippet for else statement" | |
}, | |
"else if": { | |
"prefix": "else if", | |
"body": [ | |
"else if ($1)", | |
"{", | |
"$2", | |
"}" | |
], | |
"description": "Code snippet for else-if statement" | |
}, | |
"enum": { | |
"prefix": "enum", | |
"body": [ | |
"enum ${MyEnum}", | |
"{", | |
"$1", | |
"};" | |
], | |
"description": "Code snippet for enum" | |
}, | |
"enum class": { | |
"prefix": "enum class", | |
"body": [ | |
"enum class ${MyClass} { };" | |
], | |
"description": "Code snippet for enum class (c++11)" | |
}, | |
"interface": { | |
"prefix": "interface", | |
"body": [ | |
"__interface I${Interface}", | |
"{", | |
"$1", | |
"};" | |
], | |
"description": "Code snippet for interface (Visual C++)" | |
}, | |
"namespace": { | |
"prefix": "namespace", | |
"body": [ | |
"namespace ${MyNamespace}", | |
"{", | |
"$1", | |
"}" | |
] | |
}, | |
"#ifdef": { | |
"prefix": "#ifdef", | |
"body": [ | |
"#ifdef ${DEBUG}", | |
"$1", | |
"#endif // ${DEBUG}" | |
], | |
"description": "Code snippet for #ifdef" | |
}, | |
"#ifndef": { | |
"prefix": "#ifndef", | |
"body": [ | |
"#ifndef ${1:1}", | |
"$2", | |
"#endif // !$1" | |
], | |
"description": "Code snippet for #ifndef" | |
}, | |
"#if": { | |
"prefix": "#if", | |
"body": [ | |
"#ifdef ${1:0}", | |
"$2", | |
"#endif // $1" | |
], | |
"description": "Code snippet for #if" | |
}, | |
"struct": { | |
"prefix": "struct", | |
"body": [ | |
"struct ${MyStruct}", | |
"{", | |
"$1", | |
"};" | |
], | |
"description": "Code snippet for struct" | |
}, | |
"switch": { | |
"prefix": "switch", | |
"body": [ | |
"switch (${switch_on})", | |
"{", | |
"default:", | |
" break;$1", | |
"}" | |
], | |
"description": "Code snippet for switch statement" | |
}, | |
"try": { | |
"prefix": "try", | |
"body": [ | |
"try", | |
"{", | |
" ", | |
"}", | |
"catch (const std::exception&)", | |
"{", | |
"$1", | |
"}" | |
], | |
"description": "Code snippet for try catch" | |
}, | |
"union": { | |
"prefix": "union", | |
"body": [ | |
"union ${MyUnion}", | |
"{", | |
"$1", | |
"};" | |
], | |
"description": "Code snippet for union" | |
}, | |
"cout": { | |
"prefix": "cout", | |
"body": [ | |
"std::cout << \"${1:/* message */}\" << std::endl;" | |
], | |
"description": "Code snippet for printing to std::cout, provided the header is set" | |
}, | |
"#inc": { | |
"prefix": "#inc", | |
"body": [ | |
"#include \"$1\"" | |
], | |
"description": "Code snippet for #include \" \"" | |
}, | |
"#inc<": { | |
"prefix": "#inc<", | |
"body": [ | |
"#include <$1>" | |
], | |
"description": "Code snippet for #include \" \"" | |
}, | |
"#def": { | |
"prefix": "#def", | |
"body": [ | |
"#define \"$1\" \"$2\" " | |
], | |
"description": "Code snippet for #define \" \"" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for Java 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" | |
} | |
*/ | |
"main": { | |
"prefix": "main", | |
"body": [ | |
"public static void main(String[] args) {", | |
"\t$1", | |
"}" | |
], | |
"description": "Public static main method" | |
}, | |
"sysout": { | |
"prefix": "sysout", | |
"body": [ | |
"System.out.println($1);" | |
], | |
"description": "Print to standard out" | |
}, | |
"syserr": { | |
"prefix": "syserr", | |
"body": [ | |
"System.err.println($1);" | |
], | |
"description": "Print to standard err" | |
}, | |
"fori": { | |
"prefix": "fori", | |
"body": [ | |
"for (${1:int} ${2:i} = ${3:0}; $2 < ${4:max}; $2++) {", | |
"\t$5", | |
"}" | |
], | |
"description": "Indexed for loop" | |
}, | |
"foreach": { | |
"prefix": "foreach", | |
"body": [ | |
"for (${1:type} ${2:var} : ${3:iterable}) {", | |
"\t$4", | |
"}" | |
], | |
"description": "Enhanced for loop" | |
}, | |
"Public constructor": { | |
"prefix": "ctor", | |
"body": [ | |
"public ${1:${TM_FILENAME_BASE}}($2) {", | |
"\t${0:super();}", | |
"}" | |
], | |
"description": "Public constructor" | |
}, | |
"Class Definition": { | |
"prefix": "class", | |
"body": [ | |
"/**", | |
" * ${1}", | |
" */", | |
"public class ${1:${TM_FILENAME_BASE}} {", | |
"", | |
"\t$0", | |
"}" | |
], | |
"description": "Class Definition" | |
}, | |
"Interface Definition": { | |
"prefix": "interface", | |
"body": [ | |
"/**", | |
" * ${1}", | |
" */", | |
"public interface ${1:${TM_FILENAME_BASE}} {", | |
"\t$0", | |
"}" | |
], | |
"description": "Interface Definition" | |
}, | |
"if": { | |
"prefix": "if", | |
"body": [ | |
"if (${1:condition}) {", | |
"\t$0", | |
"}" | |
], | |
"description": "if statement" | |
}, | |
"ifelse": { | |
"prefix": "ifelse", | |
"body": [ | |
"if (${1:condition}) {", | |
"\t$2", | |
"} else {", | |
"\t$3", | |
"}" | |
], | |
"description": "if/else statement" | |
}, | |
"ifnull": { | |
"prefix": "ifnull", | |
"body": [ | |
"if (${1:condition} == null) {", | |
"\t$2", | |
"}" | |
], | |
"description": "if statement checking for null" | |
}, | |
"ifnotnull": { | |
"prefix": "ifnotnull", | |
"body": [ | |
"if (${1:condition} != null) {", | |
"\t$2", | |
"}" | |
], | |
"description": "if statement checking for not null" | |
}, | |
"trycatch": { | |
"prefix": "try_catch", | |
"body": [ | |
"try {", | |
"\t$1", | |
"} catch (${2:Exception} ${3:e}) {", | |
"\t$4//${5:TODO}: handle exception", | |
"}" | |
], | |
"description": "try/catch block" | |
}, | |
"private_method": { | |
"prefix": "private_method", | |
"body": [ | |
"private ${1:void} ${2:name}($3) {", | |
"\t$4", | |
"}" | |
], | |
"description": "private method" | |
}, | |
"Public method": { | |
"prefix": "public_method", | |
"body": [ | |
"public ${1:void} ${2:name}(${3}) {", | |
"\t$4", | |
"}" | |
], | |
"description": "public method" | |
}, | |
"Private static method": { | |
"prefix": "private_static_method", | |
"body": [ | |
"private static ${1:Type} ${2:name}(${3}) {", | |
"\t$4", | |
"}" | |
], | |
"description": "private static method" | |
}, | |
"Public static method": { | |
"prefix": "public_static_method", | |
"body": [ | |
"public static ${1:void} ${2:name}(${3}) {", | |
"\t$4", | |
"}" | |
], | |
"description": "public static method" | |
}, | |
"Protected Method": { | |
"prefix": "protected_method", | |
"body": [ | |
"protected ${1:void} ${2:name}(${3}) {", | |
"\t$4", | |
"}" | |
], | |
"description": "Protected method" | |
}, | |
"Switch Statement": { | |
"prefix": "switch", | |
"body": [ | |
"switch (${1:key}) {", | |
"\tcase ${2:value}:", | |
"\t\t$0", | |
"\t\tbreak;", | |
"", | |
"\tdefault:", | |
"\t\tbreak;", | |
"}" | |
], | |
"description": "Switch Statement" | |
}, | |
"While Statement": { | |
"prefix": "while", | |
"body": [ | |
"while (${1:condition}) {", | |
"\t$0", | |
"}" | |
], | |
"description": "While Statement" | |
}, | |
"Do-While Statement": { | |
"prefix": "dowhile", | |
"body": [ | |
"do {", | |
"\t$0", | |
"} while (${1:condition});" | |
], | |
"description": "Do-While Statement" | |
}, | |
"newObject": { | |
"prefix": "new", | |
"body": [ | |
"${1:Object} ${2:foo} = new ${1:Object}();" | |
], | |
"description": "Create new Object" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
*/ | |
"const module = require('module')": { | |
"prefix": "cr", | |
"body": "const ${1:module} = require('${1:module}')" | |
}, | |
"module as class": { | |
"prefix": "cla", | |
"body": | |
"class ${1:name} {\n\tconstructor (${2:arguments}) {\n\t\t${0}\n\t}\n}\n\nmodule.exports = ${1:name}\n" | |
}, | |
"module exports": { | |
"prefix": "mo", | |
"body": "module.exports = ${1:name}\n" | |
}, | |
"import": { | |
"prefix": "imp", | |
"body": "import ${2:moduleName} from '${1:module}';$0", | |
"description": "Imports entire module statement in ES6 syntax" | |
}, | |
"importNoModuleName": { | |
"prefix": "imn", | |
"body": "import '${1:module}';$0", | |
"description": "Imports entire module in ES6 syntax without module name" | |
}, | |
"importDestructing": { | |
"prefix": "imd", | |
"body": "import { $2 } from '${1:module}';$0", | |
"description": "Imports only a portion of the module in ES6 syntax" | |
}, | |
"importEverything": { | |
"prefix": "ime", | |
"body": "import * as ${2:alias} from '${1:module}';$0", | |
"description": "Imports everything as alias from the module in ES6 syntax" | |
}, | |
"importAs": { | |
"prefix": "ima", | |
"body": "import { ${2:originalName} as ${3:alias} } from '${1:module}';$0", | |
"description": "Imports a specific portion of the module by assigning a local alias in ES6 syntax" | |
}, | |
"exportNamedFunction": { | |
"prefix": "enf", | |
"body": "export const ${1:functionName} = (${2:params}) => {\n\t$0\n};\n", | |
"description": "Export named function in ES6 syntax" | |
}, | |
"exportDefaultFunction": { | |
"prefix": "edf", | |
"body": "export default (${1:params}) => {\n\t$0\n};\n", | |
"description": "Export default function in ES6 syntax" | |
}, | |
"exportClass": { | |
"prefix": "ecl", | |
"body": "export default class ${1:className} {\n\t$0\n};\n", | |
"description": "Export default class in ES6 syntax" | |
}, | |
"exportClassExtends": { | |
"prefix": "ece", | |
"body": "export default class ${1:className} extends ${2:baseclassName} {\n\t$0\n};\n", | |
"description": "Export default class which extends a base one in ES6 syntax" | |
}, | |
"constructor": { | |
"prefix": "con", | |
"body": "constructor(${1:params}) {\n\t${0}\n}", | |
"description": "Add default constructor in a class in ES6 syntax" | |
}, | |
"method": { | |
"prefix": "met", | |
"body": "${1:methodName}(${2:params}) {\n\t${0}\n}", | |
"description": "Creates a method inside a class in ES6 syntax" | |
}, | |
"propertyGet": { | |
"prefix": "pge", | |
"body": "get ${1:propertyName}() {\n\treturn this.${0};\n}", | |
"description": "Creates a getter property inside a class in ES6 syntax" | |
}, | |
"propertyset": { | |
"prefix": "pse", | |
"body": "set ${1:propertyName}(${2:value}) {\n\t${0};\n}", | |
"description": "Creates a setter property inside a class in ES6 syntax" | |
}, | |
"forEach": { | |
"prefix": "fre", | |
"body": "${1:array}.forEach(${2:currentItem} => {\n\t${0}\n});", | |
"description": "Creates a forEach statement in ES6 syntax" | |
}, | |
"forOf": { | |
"prefix": "fof", | |
"body": "for (const ${1:item} of ${2:object}) {\n\t${0}\n}", | |
"description": "Iterating over property names of iterable objects" | |
}, | |
"forIn": { | |
"prefix": "fin", | |
"body": "for (const ${1:item} in ${2:object}) {\n\t${0}\n}", | |
"description": "Iterating over property values of iterable objects" | |
}, | |
"anonymousFunction": { | |
"prefix": "anfn", | |
"body": "(${1:params}) => {\n\t${2}\n}", | |
"description": "Creates an anonymous function in ES6 syntax" | |
}, | |
"namedFunction": { | |
"prefix": "nfn", | |
"body": "const ${1:name} = (${2:params}) => {\n\t${3}\n}", | |
"description": "Creates a named function in ES6 syntax" | |
}, | |
"destructingObject": { | |
"prefix": "dob", | |
"body": "const {${1:propertyName}} = ${2:objectToDestruct};", | |
"description": "Creates and assigns a local variable using object destructing" | |
}, | |
"destructingArray": { | |
"prefix": "dar", | |
"body": "const [${1:propertyName}] = ${2:arrayToDestruct};", | |
"description": "Creates and assigns a local variable using array destructing" | |
}, | |
"setInterval": { | |
"prefix": "sti", | |
"body": "setInterval(() => {\n\t${2}\n}, ${0:intervalInms});", | |
"description": "Executes the given function at specified intervals in ES6 syntax" | |
}, | |
"setTimeOut": { | |
"prefix": "sto", | |
"body": "setTimeout(() => {\n\t${2}\n}, ${1:delayInms});", | |
"description": "Executes the given function after the specified delay in ES6 syntax" | |
}, | |
"promise": { | |
"prefix": "prom", | |
"body": "return new Promise((resolve, reject) => {\n\t${1}\n});", | |
"description": "Creates and returns a new Promise in the standard ES6 syntax" | |
}, | |
"consoleAssert": { | |
"prefix": "cas", | |
"body": "console.assert(${1:expression}, ${2:object});", | |
"description": "If the specified expression is false, the message is written to the console along with a stack trace" | |
}, | |
"consoleClear": { | |
"prefix": "ccl", | |
"body": "console.clear();", | |
"description": "Clears the console" | |
}, | |
"consoleCount": { | |
"prefix": "cco", | |
"body": "console.count(${1:label});", | |
"description": "Writes the the number of times that count() has been invoked at the same line and with the same label" | |
}, | |
"consoleDir": { | |
"prefix": "cdi", | |
"body": "console.dir(${1:object});", | |
"description": "Prints a JavaScript representation of the specified object" | |
}, | |
"consoleError": { | |
"prefix": "cer", | |
"body": "console.error(${1:object});", | |
"description": "Displays a message in the console and also includes a stack trace from where the method was called" | |
}, | |
"consoleGroup": { | |
"prefix": "cgr", | |
"body": "console.group(\"${1:label}\");", | |
"description": "Groups and indents all following output by an additional level, until console.groupEnd() is called." | |
}, | |
"consoleGroupEnd": { | |
"prefix": "cge", | |
"body": "console.groupEnd();", | |
"description": "Closes out the corresponding console.group()." | |
}, | |
"consoleLog": { | |
"prefix": "clg", | |
"body": "console.log(${1:object});", | |
"description": "Displays a message in the console" | |
}, | |
"consoleTrace": { | |
"prefix": "ctr", | |
"body": "console.trace(${1:object});", | |
"description": "Prints a stack trace from the point where the method was called" | |
}, | |
"consoleWarn": { | |
"prefix": "cwa", | |
"body": "console.warn(${1:object});", | |
"description": "Displays a message in the console but also displays a yellow warning icon along with the logged message" | |
}, | |
"consoleInfo": { | |
"prefix": "cin", | |
"body": "console.info(${1:object});", | |
"description": "Displays a message in the console but also displays a blue information icon along with the logged message" | |
}, | |
"consoleTable": { | |
"prefix": "clt", | |
"body": "console.table(${1:object});", | |
"description": "Displays tabular data as a table." | |
}, | |
"Print to console": { | |
"prefix": "log", | |
"body": [ | |
"console.log('$1');", | |
"$2" | |
], | |
"description": "Log output to console" | |
}, | |
"after": { | |
"prefix": "aftr", | |
"body": [ | |
"after${1:Each}((${2:done}) => {", | |
"\t${3:}", | |
"});" | |
], | |
"description": "Mocha BDD: after() | afterEach()" | |
}, | |
"before": { | |
"prefix": "befr", | |
"body": [ | |
"before${1:Each}((${2:done}) => {", | |
"\t${3:}", | |
"});" | |
], | |
"description": "Mocha BDD: before() | beforeEach()" | |
}, | |
"describe": { | |
"prefix": "desc", | |
"body": [ | |
"describe('${1:what?}', () => {", | |
"\t${0:}", | |
"});" | |
], | |
"description": "Mocha BDD: describe()" | |
}, | |
"context": { | |
"prefix": "cont", | |
"body": [ | |
"context('${1:what?}', () => {", | |
"\t${0:}", | |
"});" | |
], | |
"description": "Mocha BDD: context() - alias for describe()" | |
}, | |
"it": { | |
"prefix": "it", | |
"body": [ | |
"it('${1:should do what...}', (${2:done}) => {", | |
"\t${0:}", | |
"});" | |
], | |
"description": "Mocha BDD: it()" | |
}, | |
"suite": { | |
"prefix": "suite", | |
"body": [ | |
"suite('${1:suiteName}', () => {", | |
"\t${2:setup(() => {", | |
"\t\t${3}", | |
"\t});}", | |
"\t${4:teardown(() => {", | |
"\t\t${5}", | |
"\t});}", | |
"\t${6}", | |
"});" | |
], | |
"description": "Mocha TDD: suite()" | |
}, | |
"test": { | |
"prefix": "test", | |
"body": [ | |
"test('${1:test}', (${2:done}) => {", | |
"\t${3}", | |
"});" | |
], | |
"description": "Mocha TDD: test()" | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":"7.21.0","status":0,"welcomeShown":true} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment