Skip to content

Instantly share code, notes, and snippets.

@inorganik
Created October 15, 2018 22: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 inorganik/9d2e13cc88ffb44230e13e4603d70679 to your computer and use it in GitHub Desktop.
Save inorganik/9d2e13cc88ffb44230e13e4603d70679 to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-10-15T22:15:03.430Z","extensionVersion":"v3.1.2"}
[
{
"metadata": {
"id": "36d2103d-ba17-4fb6-9e79-32118fe3d48f",
"publisherId": "natewallace.angular2-inline",
"publisherDisplayName": "natewallace"
},
"name": "angular2-inline",
"publisher": "natewallace",
"version": "0.0.17"
},
{
"metadata": {
"id": "f583eafd-aa0d-4ccb-8f44-d1e610389660",
"publisherId": "CoenraadS.bracket-pair-colorizer",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer",
"publisher": "CoenraadS",
"version": "1.0.60"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.1.2"
},
{
"metadata": {
"id": "060828aa-17ab-40d9-9e2d-f8407f5c8d04",
"publisherId": "alexdima.copy-relative-path",
"publisherDisplayName": "alexdima"
},
"name": "copy-relative-path",
"publisher": "alexdima",
"version": "0.0.2"
},
{
"metadata": {
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd",
"publisherId": "msjsdiag.debugger-for-chrome",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-chrome",
"publisher": "msjsdiag",
"version": "4.10.2"
},
{
"metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "EditorConfig.EditorConfig",
"publisherDisplayName": "EditorConfig"
},
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.12.4"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "8.5.6"
},
{
"metadata": {
"id": "26a529c9-2654-4b95-a63f-02f6a52429e6",
"publisherId": "zhuangtongfa.Material-theme",
"publisherDisplayName": "zhuangtongfa"
},
"name": "Material-theme",
"publisher": "zhuangtongfa",
"version": "2.17.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": "513cf511-3894-4ee2-8c34-13ab83ddfd37",
"publisherId": "eg2.tslint",
"publisherDisplayName": "eg2"
},
"name": "tslint",
"publisher": "eg2",
"version": "1.0.40"
},
{
"metadata": {
"id": "1b160753-ae5e-42bb-82ad-d115ce5c10f4",
"publisherId": "be5invis.vscode-custom-css",
"publisherDisplayName": "be5invis"
},
"name": "vscode-custom-css",
"publisher": "be5invis",
"version": "3.0.0"
},
{
"metadata": {
"id": "bdd90d13-0adb-492f-beb5-6d5142ae99ff",
"publisherId": "bowlerhatllc.vscode-nextgenas",
"publisherDisplayName": "bowlerhatllc"
},
"name": "vscode-nextgenas",
"publisher": "bowlerhatllc",
"version": "0.14.1"
},
{
"metadata": {
"id": "9b2c953d-6ad4-46d1-b18e-7e5992d1d8a6",
"publisherId": "akamud.vscode-theme-onedark",
"publisherDisplayName": "akamud"
},
"name": "vscode-theme-onedark",
"publisher": "akamud",
"version": "2.1.0"
},
{
"metadata": {
"id": "fd6d3dc6-b307-4589-82a6-78e2afec3d77",
"publisherId": "johnpapa.winteriscoming",
"publisherDisplayName": "johnpapa"
},
"name": "winteriscoming",
"publisher": "johnpapa",
"version": "0.8.0"
}
]
[
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "cmd+shift+j",
"command": "workbench.action.terminal.focusNext"
}
]
{
"sync.gist": "",
"sync.lastUpload": "2018-08-27T16:35:00.489Z",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.lastDownload": "2018-04-14T20:45:23.224Z",
"sync.forceDownload": false,
"sync.host": "",
"sync.pathPrefix": "",
"sync.quietSync": false,
"sync.askGistName": false,
"sync.removeExtensions": true,
"sync.syncExtensions": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": false,
"editor.wordWrap": "on",
"editor.minimap.enabled": false,
"editor.dragAndDrop": false,
"editor.tabSize": 2,
"editor.tabCompletion": true,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"html.autoClosingTags": false,
"workbench.editor.enablePreview": false,
"workbench.tree.horizontalScrolling": true,
"window.newWindowDimensions": "inherit",
"git.confirmSync": false,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true,
"suppressUpdateNotice": false,
"suppressWelcomeNotice": true
},
"vscode_custom_css.imports": [
"file:///Users/japerkins17/Documents/vscode/monaco-tree.css"
],
"explorer.confirmDelete": false,
"gitlens.keymap": "chorded",
"telemetry.enableTelemetry": false,
"window.zoomLevel": 1,
"gitlens.historyExplorer.enabled": true,
"java.errors.incompleteClasspath.severity": "ignore",
"extensions.ignoreRecommendations": false,
"git.enableSmartCommit": false,
"breadcrumbs.enabled": true,
"workbench.startupEditor": "newUntitledFile",
"bracketPairColorizer.showBracketsInGutter": true,
"workbench.colorTheme": "Monokai",
"editor.fontWeight": "500",
"explorer.autoReveal": false
}
{
// 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:
"Print to console": {
"scope": "javascript,typescript",
"prefix": "log",
"body": [
"console.log($1);"
],
"description": "Log output to console"
}
}
{
// 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:
"Sign in with google": {
"scope": "typescript",
"prefix": "z.signIn",
"body": [
"signIn() {",
" this.afAuth.auth.signInWithPopup(new auth.GoogleAuthProvider())",
" .then(() => {",
" this.zone.run(() => this.router.navigateByUrl('/hometown'));",
" }, err => console.error('Error signing in', err));",
"}"
],
"description": "sign into google auth"
},
"Sign in markup": {
"scope": "html",
"prefix": "z.markup.login",
"body": [
"<p>",
" <span *ngIf=\"userService.afAuth.user | async as user; else showLogin\">{{ user.displayName }} • <a href (click)=\"userService.logout()\">Log out</a> • </span>",
" <ng-template #showLogin><a href routerLink=\"/login\" routerLinkActive=\"active\">Login to add your hometown</a> • </ng-template>",
" <a href routerLink=\"/hometown\" routerLinkActive=\"active\">My hometown</a>",
"</p>"
],
"description": "sign in markup"
},
"Is logged in": {
"scope": "typescript",
"prefix": "z.isloggedin",
"body": [
"isLoggedIn(withRedirect?: boolean): Observable<boolean> {",
" return this.afAuth.authState.pipe(",
" first(),",
" map(user => {",
" this.currentUser = user;",
" return !!user;",
" }),",
" tap(isLoggedIn => {",
" if (!isLoggedIn && withRedirect) {",
" this.router.navigateByUrl('/login');",
" }",
" })",
" );",
"}"
],
"description": "is logged in function"
},
"Map click": {
"scope": "typescript",
"prefix": "z.mapClick",
"body": [
"setHometown(event: MouseEvent) {",
" this.userService.isLoggedIn().subscribe(isLoggedIn => {",
" if (isLoggedIn) {",
" const marker: MapMarker = {",
" lat: event.coords.lat,",
" lng: event.coords.lng,",
" label: this.userService.currentUser.displayName,",
" photoUrl: this.userService.currentUser.photoURL",
" };",
" this.afs.doc(`hometowns/${this.userService.currentUser.uid}`).set(marker);",
" }",
" });",
"}"
],
"description": "guts of map click function"
},
"Hometown markup": {
"scope": "html",
"prefix": "z.markup.hometown",
"body": [
"<h4>My hometown coordinates</h4>",
"<p *ngIf=\"userMarker$ | async as marker; else showChoose\">lat: {{ marker.lat }}<br>lng: {{ marker.lng }}</p>",
"<ng-template #showChoose>",
" <p>Click your hometown on the map!</p>",
"</ng-template>",
],
"description": "Markup for hometown component"
},
"Marker Interface": {
"scope": "typescript",
"prefix": "z.marker.interface",
"body": [
"export interface MapMarker {",
" lat: number;",
" lng: number;",
" label: string;",
" photoUrl: string;",
"}"
],
"description": "agm map markers"
},
"Map Markers": {
"scope": "html",
"prefix": "z.markup.marker",
"body": [
"<agm-marker *ngFor=\"let marker of markers$ | async\" [latitude]=\"marker.lat\" [longitude]=\"marker.lng\">",
" <agm-info-window><img src=\"{{ marker.photoUrl }}\">{{ marker.label }}</agm-info-window>",
"</agm-marker>"
],
"description": "agm map markers"
},
"Map styles": {
"scope": "css, scss",
"prefix": "z.styles.map",
"body": [
".agm-info-window-content {",
" text-align: center;",
" img {",
" display: block;",
" margin: auto;",
" width: 60px;",
" border-radius: 50%;",
" }",
"}",
".sidebar {",
" position: absolute;",
" z-index: 1;",
" top: 0;",
" left: 0;",
" .floating-box {",
" margin: 20px;",
" padding: 15px;",
" width: 400px;",
" background: ivory;",
" box-shadow: -6px 6px rgba(0,0,0,.2);",
" text-align: center;",
" button {",
" font-size: 1.2em;",
" }",
" }",
"}",
"@media (max-width: 576px) {",
" .sidebar {",
" width: 100%;",
" .floating-box {",
" padding: 10px;",
" margin: 0 0 6px 0;",
" width: 100%;",
" box-shadow: 0 6px rgba(0,0,0,.2);",
" box-sizing: border-box;",
" }",
" }",
"}"
],
"description": "map styles"
},
"Map component imports": {
"scope": "typescript",
"prefix": "z.i.map",
"body": [
"import { MouseEvent } from '@agm/core';",
"import { AngularFirestore } from 'angularfire2/firestore';",
"import { Observable } from 'rxjs';"
],
"description": "Map component non-local imports"
},
"User service imports": {
"scope": "typescript",
"prefix": "z.i.user",
"body": [
"import { AngularFireAuth } from 'angularfire2/auth';",
"import { auth } from 'firebase/app';",
"import { first, map, tap } from 'rxjs/operators';",
"import { Router } from '@angular/router';",
"import { Observable } from 'rxjs';"
],
"description": "User service non-local imports"
},
"Hometown component imports": {
"scope": "typescript",
"prefix": "z.i.hometown",
"body": [
"import { AngularFirestore } from 'angularfire2/firestore';",
"import { Observable } from 'rxjs';"
],
"description": "Hometown component non-local imports"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment