Skip to content

Instantly share code, notes, and snippets.

@JeffryGonzalez
Last active June 6, 2016 11:11
Show Gist options
  • Select an option

  • Save JeffryGonzalez/8b46857b42fa17eaddaba5ea907abe94 to your computer and use it in GitHub Desktop.

Select an option

Save JeffryGonzalez/8b46857b42fa17eaddaba5ea907abe94 to your computer and use it in GitHub Desktop.
Visual Studio Code Files
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+k ctrl+d",
"command": "editor.action.format",
"when": "editorTextFocus"
},
{
"key": "ctrl+l",
"command": "editor.action.deleteLines",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+s",
"command": "workbench.action.files.saveAll" }
]
// Place your settings in this file to overwrite the default settings
{
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/*.js": false,
"**/*.js.map": true
},
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.fontSize": 18,
"editor.glyphMargin": true,
"editor.cursorStyle": "line",
"editor.renderWhitespace": false,
"files.trimTrailingWhitespace": true,
"editor.formatOnType": true,
"team.accessTokens": [
{
"account": "hypertheory",
"token": "h5ifs4gtnbn5pi2wlu5wizrx3dx3usqvkvtvtegwihlbexwt3iha"
}
]
}
{
"rules": {
"quotemark": [
"single"
],
"no-trailing-whitespace": true,
"no-consecutive-blank-lines": true,
"no-duplicate-variable": true,
"no-var-keyword": true,
"whitespace": [
"check-separator"
]
}
}
{
"Angular 2 Component - Inline Template": {
"prefix": "ng2c",
"body": [
"import {Component, OnInit} from \"angular2/core\";",
"",
"@Component({",
" selector: \"$1\",",
" template: `",
" $2",
"`",
"})",
"export class ${3:ClassName}Component implements OnInit {",
"",
" constructor() { }",
"",
" ngOnInit() { }",
"",
"}"
]
},
"Angular 2 Component - Template URL": {
"prefix": "ng2cu",
"body": [
"import {Component, OnInit} from \"angular2/core\";",
"",
"@Component({",
" selector: \"$1\",",
" templateUrl: \"$2\"",
"})",
"export class ${3:ClassName}Component implements OnInit {",
"",
" constructor() { }",
"",
" ngOnInit() { }",
"",
"}"
]
},
"afterEach": {
"prefix": "jae",
"body": "\nafterEach(() => {\n\t$1\n});\n\t",
"description": "afterEach function is called once after each spec"
},
"beforeEach": {
"prefix": "jbe",
"body": "\nbeforeEach(() => {\n\t$1\n});\n\t",
"description": "beforeEach function is called once before each spec"
},
"describe": {
"prefix": "jdesc",
"body": "\ndescribe('${1:Name of the group}', () => {\n\t$2\n});\n\t",
"description": "creates a suite of tests"
},
"it": {
"prefix": "jit",
"body": "\nit('${1:should behave...}', () => {\n\t$2\n});\n\t",
"description": "creates a test method"
},
"expect": {
"prefix": "jexp",
"body": "expect(${1})$2;"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment