Skip to content

Instantly share code, notes, and snippets.

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 kasperpihl/d85771f6026d0f6e50ca87bd8cd7d30a to your computer and use it in GitHub Desktop.
Save kasperpihl/d85771f6026d0f6e50ca87bd8cd7d30a to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"contents":{"launch":{"version":"0.2.0","configurations":[{"type":"node","request":"launch","name":"Launch Program","program":"${workspaceFolder}/start:server"}]}},"overrides":[],"keys":["launch.version","launch.configurations"]}
{"lastUpload":"2019-07-23T06:25:28.230Z","extensionVersion":"v3.4.1"}
[
{
"metadata": {
"id": "914c8b2e-3129-4570-860b-8ab8c51905e0",
"publisherId": "ue.alphabetical-sorter",
"publisherDisplayName": "ue"
},
"name": "alphabetical-sorter",
"publisher": "ue",
"version": "2.0.1"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.1"
},
{
"metadata": {
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71",
"publisherId": "mikestead.dotenv",
"publisherDisplayName": "mikestead"
},
"name": "dotenv",
"publisher": "mikestead",
"version": "1.0.1"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "9.9.1"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "3.8.1"
},
{
"metadata": {
"id": "ef2a5b38-02c4-4193-8561-1f072c209474",
"publisherId": "silvenon.mdx",
"publisherDisplayName": "silvenon"
},
"name": "mdx",
"publisher": "silvenon",
"version": "0.1.0"
},
{
"metadata": {
"id": "b027c4b2-25ad-46db-b574-05dae3b2dc92",
"publisherId": "azemoh.one-monokai",
"publisherDisplayName": "azemoh"
},
"name": "one-monokai",
"publisher": "azemoh",
"version": "0.3.7"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "1.9.0"
},
{
"metadata": {
"id": "1c014445-5a7f-4994-b0b3-75dce6a53891",
"publisherId": "miclo.sort-typescript-imports",
"publisherDisplayName": "miclo"
},
"name": "sort-typescript-imports",
"publisher": "miclo",
"version": "1.4.1"
},
{
"metadata": {
"id": "f8b5562e-a2d9-49ab-9f91-e7da91998a92",
"publisherId": "shinnn.stylelint",
"publisherDisplayName": "shinnn"
},
"name": "stylelint",
"publisher": "shinnn",
"version": "0.51.0"
},
{
"metadata": {
"id": "6bc1e3ad-c0e2-46b6-bbad-246c5f59215b",
"publisherId": "pmneo.tsimporter",
"publisherDisplayName": "pmneo"
},
"name": "tsimporter",
"publisher": "pmneo",
"version": "2.0.1"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "ms-azuretools.vscode-docker",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "0.7.0"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.0"
},
{
"metadata": {
"id": "daf8b44d-8aae-4da2-80c5-1f770219f643",
"publisherId": "DavidAnson.vscode-markdownlint",
"publisherDisplayName": "DavidAnson"
},
"name": "vscode-markdownlint",
"publisher": "DavidAnson",
"version": "0.28.0"
}
]
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "shift+cmd+r",
"command": "workbench.files.action.showActiveFileInExplorer"
},
{
"key": "cmd+9",
"command": "-workbench.action.lastEditorInGroup"
},
{
"key": "cmd+9",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "alt+cmd+enter",
"command": "workbench.action.editorLayoutSingle"
},
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "cmd+t",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpen"
},
{
"key": "cmd+t",
"command": "workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "cmd+k f12",
"command": "-editor.action.openDeclarationToTheSide",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "alt+h",
"command": "breadcrumbs.focusAndSelect",
"when": "breadcrumbsVisible"
},
{
"key": "shift+cmd+.",
"command": "-breadcrumbs.focusAndSelect",
"when": "breadcrumbsVisible"
},
{
"key": "shift+cmd+t",
"command": "-workbench.action.reopenClosedEditor"
},
{
"key": "shift+cmd+t",
"command": "workbench.action.terminal.new"
},
{
"key": "ctrl+shift+`",
"command": "-workbench.action.terminal.new"
},
{
"key": "ctrl+left",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack"
},
{
"key": "ctrl+right",
"command": "workbench.action.navigateForward"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward"
}
]
{
"breadcrumbs.filePath": "last",
"breadcrumbs.symbolPath": "off",
"diffEditor.renderSideBySide": false,
"editor.acceptSuggestionOnEnter": "off",
"editor.accessibilitySupport": "off",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "SourceCodePro-Semibold",
"editor.fontLigatures": true,
"editor.fontSize": 13,
"editor.formatOnSave": true,
"editor.minimap.enabled": false,
"editor.renderIndentGuides": false,
"editor.tabCompletion": "on",
"editor.tabSize": 2,
"editor.wordWrap": "on",
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
],
"files.exclude": {
"**/.cache": true,
"**/.rts2_*": true,
"**/build": true,
"**/dist": true,
"**/node_modules": true
},
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"gitlens.blame.heatmap.enabled": false,
"gitlens.blame.heatmap.location": "left",
"gitlens.blame.highlight.enabled": false,
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.scrollable": false,
"gitlens.statusBar.enabled": false,
"javascript.updateImportsOnFileMove.enabled": "never",
"sync.gist": "d85771f6026d0f6e50ca87bd8cd7d30a",
"terminal.integrated.fontSize": 13,
"terminal.integrated.rendererType": "dom",
"typescript.updateImportsOnFileMove.enabled": "never",
"window.newWindowDimensions": "maximized",
"window.zoomLevel": 1,
"workbench.colorTheme": "One Monokai",
"workbench.editor.enablePreview": false,
"workbench.editor.showTabs": false,
"workbench.iconTheme": "material-icon-theme"
}
{
"Swiss Stylesheet": {
"prefix": "swisssheet",
"body": [
"import { styleSheet } from 'swiss-react';",
"",
"export default styleSheet('${1:Name}', {",
" ${2:Wrapper}: {${3}",
" }",
"});"
],
"description": "Swiss Stylesheet"
},
"Create endpoint": {
"prefix": "endpointCreate",
"body": [
"import { object, array, string } from 'valjs';",
"import { query, transaction } from 'src/utils/db/db';",
"import endpointCreate from 'src/utils/endpoint/endpointCreate';",
"",
"const expectedInput = {${2}};",
"",
"export default endpointCreate({",
" expectedInput,",
"}, async (req, res, next) => {",
" // Get inputs",
" const input = res.locals.input;",
"",
" // Create response data.",
" res.locals.output = {};",
"});"
],
"description": "Create endpoint"
},
"React Javascript": {
"prefix": "reactjs",
"body": [
"import React from 'react';",
"import SW from './${1:name}.swiss';",
"",
"export default function ${1:name}(props) {",
" return (",
" <SW.Wrapper />",
" );",
"};"
],
"description": "React Functional"
},
"React Typescript": {
"prefix": "reactts",
"body": [
"import React from 'react';",
"import styles from './${1:Component}.module.scss';",
"export interface I${1:Component}Props {}",
"",
"export default function ${1:Component}({}: I${1:Component}Props) {",
" return (",
" <div />",
" );",
"};"
],
"description": "React Functional"
},
"Redux Reducer": {
"prefix": "reduxreducer",
"body": [
"import * as types from 'constants'",
"const initialState = {};",
"",
"export default function ${1:name} (state = initialState, action) {",
" switch (action.type) {",
" default:",
" return state",
" }",
"}"
],
"description": "Redux Reducer"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment