Skip to content

Instantly share code, notes, and snippets.

@swennemans
Last active July 3, 2018 05:36
Show Gist options
  • Save swennemans/4727d3bc6fd66e64df97ca3c155de6ba to your computer and use it in GitHub Desktop.
Save swennemans/4727d3bc6fd66e64df97ca3c155de6ba to your computer and use it in GitHub Desktop.
Visual Studio Code Sync Settings Gist
{"lastUpload":"2018-07-03T05:36:32.843Z","extensionVersion":"v2.9.2"}
[
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.0.15"
},
{
"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": "f6dbd813-b0a0-42c1-90ea-10dde9d925a7",
"publisherId": "streetsidesoftware.code-spell-checker",
"publisherDisplayName": "streetsidesoftware"
},
"name": "code-spell-checker",
"publisher": "streetsidesoftware",
"version": "1.6.10"
},
{
"metadata": {
"id": "1ec62ca5-d7f9-4ddb-a882-e8d018c0aefd",
"publisherId": "msjsdiag.debugger-for-chrome",
"publisherDisplayName": "msjsdiag"
},
"name": "debugger-for-chrome",
"publisher": "msjsdiag",
"version": "4.7.0"
},
{
"metadata": {
"id": "37de94ea-666c-43de-9f03-4280b88f33e3",
"publisherId": "TeddyDD.fish",
"publisherDisplayName": "TeddyDD"
},
"name": "fish",
"publisher": "TeddyDD",
"version": "0.0.4"
},
{
"metadata": {
"id": "b3917e4f-5086-4def-a82b-2ae6b708db16",
"publisherId": "flowtype.flow-for-vscode",
"publisherDisplayName": "flowtype"
},
"name": "flow-for-vscode",
"publisher": "flowtype",
"version": "0.8.1"
},
{
"metadata": {
"id": "2335b326-c334-4e81-bc51-c408fcec6e7c",
"publisherId": "waderyan.gitblame",
"publisherDisplayName": "waderyan"
},
"name": "gitblame",
"publisher": "waderyan",
"version": "2.4.2"
},
{
"metadata": {
"id": "5960f38e-0bbe-4644-8f9c-9c8824e82511",
"publisherId": "donjayamanne.githistory",
"publisherDisplayName": "donjayamanne"
},
"name": "githistory",
"publisher": "donjayamanne",
"version": "0.4.1"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "8.4.1"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "ms-vscode.Go",
"publisherDisplayName": "ms-vscode"
},
"name": "Go",
"publisher": "ms-vscode",
"version": "0.6.84"
},
{
"metadata": {
"id": "54da57eb-3718-44cf-bb67-5e4a03b35ece",
"publisherId": "ms-vscode.js-atom-grammar",
"publisherDisplayName": "ms-vscode"
},
"name": "js-atom-grammar",
"publisher": "ms-vscode",
"version": "0.1.14"
},
{
"metadata": {
"id": "b027c4b2-25ad-46db-b574-05dae3b2dc92",
"publisherId": "azemoh.one-monokai",
"publisherDisplayName": "azemoh"
},
"name": "one-monokai",
"publisher": "azemoh",
"version": "0.3.4"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "1.5.0"
},
{
"metadata": {
"id": "570e6089-b871-41df-9cf4-a723cb34ef01",
"publisherId": "rust-lang.rust",
"publisherDisplayName": "rust-lang"
},
"name": "rust",
"publisher": "rust-lang",
"version": "0.4.5"
},
{
"metadata": {
"id": "00518570-772b-4ccb-8b06-d056f3f556e0",
"publisherId": "Tyriar.sort-lines",
"publisherDisplayName": "Tyriar"
},
"name": "sort-lines",
"publisher": "Tyriar",
"version": "1.7.0"
},
{
"metadata": {
"id": "0b2bcf1a-3630-47ec-9718-e153b0695f17",
"publisherId": "Tyriar.terminal-tabs",
"publisherDisplayName": "Tyriar"
},
"name": "terminal-tabs",
"publisher": "Tyriar",
"version": "0.2.0"
},
{
"metadata": {
"id": "cc1b9e15-8d4e-43ed-8a31-b81683af6bc4",
"publisherId": "azemoh.theme-onedark",
"publisherDisplayName": "azemoh"
},
"name": "theme-onedark",
"publisher": "azemoh",
"version": "0.5.2"
},
{
"metadata": {
"id": "9764fb1f-aa45-4e65-a18e-705b3b00761c",
"publisherId": "tinkertrain.theme-panda",
"publisherDisplayName": "tinkertrain"
},
"name": "theme-panda",
"publisher": "tinkertrain",
"version": "1.3.0"
},
{
"metadata": {
"id": "3f770365-3682-44ee-a63e-5ef1b16c74d2",
"publisherId": "aeschli.vscode-css-formatter",
"publisherDisplayName": "aeschli"
},
"name": "vscode-css-formatter",
"publisher": "aeschli",
"version": "1.0.1"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.4.12"
}
]
{
"window.zoomLevel": -1,
"editor.fontFamily": "Fira Code",
"editor.fontSize": 11.5,
"editor.fontLigatures": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 10000,
"editor.insertSpaces": false,
"editor.tabSize": 3,
"editor.formatOnSave": true,
"prettier.singleQuote": true,
"prettier.parser": "flow",
"prettier.trailingComma": "es5",
"prettier.tabWidth": 2,
"prettier.useTabs": true,
"prettier.printWidth": 120,
"sync.gist": "4727d3bc6fd66e64df97ca3c155de6ba",
"sync.lastUpload": "2017-02-21T14:49:09.608Z",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.lastDownload": "1970-01-01T00:00:00.000Z",
"sync.version": 244,
"sync.showSummary": true,
"sync.forceDownload": false,
"sync.anonymousGist": false,
"flow.useNPMPackagedFlow": true,
"flow.enabled": true,
"javascript.validate.enable": false,
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vs-seti",
"editor.minimap.enabled": false,
"workbench.sideBar.location": "right",
"workbench.panel.location": "bottom",
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": false,
"suppressShowKeyBindingsNotice": true,
"suppressUpdateNotice": true,
"suppressWelcomeNotice": true
},
"gitlens.keymap": "chorded",
"terminal.external.osxExec": "Terminal.app",
"terminal.integrated.fontSize": 13,
"terminal.integrated.shell.osx": "/usr/local/bin/fish",
"gitlens.historyExplorer.enabled": true,
"editor.tokenColorCustomizations": {
"comments": "#d4922f"
},
}
{
/*
// Place your snippets for Elixir 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"
}
*/
}
{
/*
// 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:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
"$2"
],
"description": "Log output to console"
}
*/
"Print to console.debug": {
"prefix": "log",
"body": [
"console.debug('$1');",
],
"description": "Log output to console.debug"
},
"Console.debug with warning": {
"prefix": "logw",
"body": [
"console.debug('%c🕵 $1', 'background: blue; color: white; font-size: 1.5em');"
],
"description": "Log output to console.debug"
},
"Console.debug with serious warning!": {
"prefix": "logd",
"body": [
"console.debug('%c👮‍ $1', 'background: red; color: white; font-size: 1.5em');"
],
"description": "Log output to console.debug"
},
"Create test template with enzyme mount()": {
"prefix": "rcttm",
"body": [
"/* eslint-disable no-undef */",
"import React from 'react';",
"import { mount } from 'enzyme';",
"import $1 from '../../$1';",
"",
"describe('$1', () => {",
" let props;",
" let mountedComponent;",
"",
" const component = () =>{",
" mountedComponent = mount(<$1{...props
} />);",
" return mountedComponent;",
"
};",
"",
" beforeEach(() =>{",
" props ={};",
" mountedComponent = undefined;",
"
});",
"",
" test('..should render', () =>{",
" const wrapper = component().find('div').first();",
" expect(wrapper).toBeTruthy();",
"
});",
"});",
"$2"
],
"description": "Create a test template with enzyme's mount()"
},
"Create test template with enzyme shallow()": {
"prefix": "rcttm",
"body": [
"/* eslint-disable no-undef */",
"import React from 'react';",
"import { shallow } from 'enzyme';",
"import $1 from '../../$1';",
"",
"describe('$1', () => {",
" let props;",
" let mountedComponent;",
"",
" const component = () =>{",
" mountedComponent = shallow(<$1{...props} />);",
" return mountedComponent;",
" };",
"",
" beforeEach(() =>{",
" props = {};",
" mountedComponent = undefined;",
" });",
"",
" test('..should render', () =>{",
" const wrapper = component().find('div').first();",
" expect(wrapper).toBeTruthy();",
" });",
"});",
"$2"
],
"description": "Create a test template with enzyme's mount()"
},
"Create enzyme test template with shallow and mount": {
"prefix": "rcett",
"description": "🌴 Test template with enzyme shallow and mount",
"body": [
"import React from 'react';",
"import { shallow, mount } from 'enzyme';",
"import $1 from '../$1';",
"",
"describe('$1', () => {",
"",
" const component = (props = {}) => {",
" return {",
" shallow: shallow(<$1 {...props} />),",
" mount: mount(<$1 {...props} />),",
" };",
" };",
"",
"",
" test('should render', () => {",
" const props = {};",
" const { shallow: wrapper } = component(props);",
"",
" expect(wrapper.find('div').first().length).toEqual(1);",
" });",
"});",
"",
"$2"
]
},
"Create enzyme test template with snapshot, shallow and mount": {
"prefix": "rcestt",
"description": "🦄 Test template with snapshot, enzyme shallow and mount",
"body": [
"import React from 'react';",
"import { shallow, mount } from 'enzyme';",
"import renderer from 'react-test-renderer';",
"import $1 from '../$1';",
"",
"describe('$1', () => {",
"",
" const component = (props = {}) => {",
" return {",
" shallow: shallow(<$1 {...props} />),",
" mount: mount(<$1 {...props} />),",
" snapshot: renderer.create(<$1 {...props} />).toJSON(),",
" };",
" };",
"",
"",
" test('should render', () => {",
" const props = {};",
" const { snapshot: wrapper } = component(props);",
"",
" expect(wrapper).toMatchSnapshot();",
" });",
"});",
"",
"$2"
]
},
"Create test template with snapshot()": {
"prefix": "rcttsnap",
"body": [
"/* eslint-disable no-undef */",
"import React from 'react';",
"import renderer from 'react-test-renderer';",
"import $1 from '../../$1';",
"",
"describe('$1', () => {",
" let props;",
" let mountedComponent;",
"",
" const component = (props = {}) =>{",
" mountedComponent = renderer.create(<$1 {...props} />).toJSON();",
" return mountedComponent;",
" };",
"",
" beforeEach(() =>{",
" props = {};",
" mountedComponent = undefined;",
" });",
"",
" test('..should render', () =>{",
" const wrapper = component()",
" expect(wrapper).toMatchSnapshot();",
" });",
"});",
"$2"
],
"description": "Create a test template with enzyme's mount()"
},
"Create test template with snapshot()": {
"prefix": "rcttsnapws",
"body": [
"/* eslint-disable no-undef */",
"import React from 'react';",
"import renderer from 'react-test-renderer';",
"import { matcher, serializer } from 'jest-glamor-react';"
""
"expect.addSnapshotSerializer(serializer);"
"expect.extend(matcher);"
""
"import $1 from '../../$1';",
"",
"describe('$1', () => {",
" let props;",
" let mountedComponent;",
"",
" const component = (props = {}) =>{",
" mountedComponent = renderer.create(<$1 {...props} />).toJSON();",
" return mountedComponent;",
" };",
"",
" beforeEach(() =>{",
" props = {};",
" mountedComponent = undefined;",
" });",
"",
" test('..should render', () =>{",
" const wrapper = component()",
" expect(wrapper).toMatchSnapshotWithGlamor();"
" });",
"});",
"$2"
],
"description": "Create a test template with Jest's snapshot and Jest Glamor"
},
"Create new Epic": {
"prefix": "epicnew",
"body": [
"const $1Epic = (action$, store) => action$.ofType($2).switchMap(action => {});"
]
},
"Import react": {
"prefix": "imr",
"body": [
"// @flow"
"import React from 'react';"
""
""
"type Props = {};"
],
"description": "Import react"
},
"Import react component": {
"prefix": "imrc",
"body": [
"// @flow"
"import React, { Component } from 'react';"
""
""
"type Props = {};"
],
"description": "Import react component"
},
"Stateless Component": {
"prefix": "sl",
"body": [
"// @flow"
"import React from 'react';"
"type Props = {};"
"const $1 = ({}: Props) => (",
"\t$2",
");",
"",
"export default $1;"
]
},
"ComponentWillMount": {
"prefix": "cwm",
"body": [
"componentWillMount() {",
"\t$1",
"}"
]
},
"ComponentWillUpdate": {
"prefix": "cwu",
"body": [
"componentWillUpdate() {",
"\t$1",
"}"
]
},
"ComponentDidUpdate": {
"prefix": "cdu",
"body": [
"componentDidUpdate(prevProps, prevState) {",
"\t$1",
"}"
]
},
"ComponentWillUnmount": {
"prefix": "cwum",
"body": [
"componentWillUnmount() {",
"\t$1",
"}"
]
}
{
/*
// 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"
}
*/
}
{"version":"7.2.0","status":"notInstalled","welcomeShown":true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment