Skip to content

Instantly share code, notes, and snippets.

@arwandar
Last active January 6, 2021 09:06
Show Gist options
  • Save arwandar/e3196d73e32b434c7ac61f626c28e4f6 to your computer and use it in GitHub Desktop.
Save arwandar/e3196d73e32b434c7ac61f626c28e4f6 to your computer and use it in GitHub Desktop.
Match VScode
{"lastUpload":"2020-11-18T09:27:14.004Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "7a0110bb-231a-4598-aa1b-0769ea46d28b",
"publisherId": "aaron-bond.better-comments",
"publisherDisplayName": "aaron-bond"
},
"name": "better-comments",
"publisher": "aaron-bond",
"version": "2.1.0"
},
{
"metadata": {
"id": "5a6e2b21-1d61-4acd-b31b-907f9c23f18a",
"publisherId": "CoenraadS.bracket-pair-colorizer-2",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer-2",
"publisher": "CoenraadS",
"version": "0.2.0"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "121396ad-85a1-45ec-9fd1-d95028a847f5",
"publisherId": "naumovs.color-highlight",
"publisherDisplayName": "naumovs"
},
"name": "color-highlight",
"publisher": "naumovs",
"version": "2.3.0"
},
{
"metadata": {
"id": "b3917e4f-5086-4def-a82b-2ae6b708db16",
"publisherId": "flowtype.flow-for-vscode",
"publisherDisplayName": "flowtype"
},
"name": "flow-for-vscode",
"publisher": "flowtype",
"version": "1.5.0"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.2.3"
},
{
"metadata": {
"id": "a2cec723-5349-460d-9de9-0fd1f8d3456f",
"publisherId": "xabikos.JavaScriptSnippets",
"publisherDisplayName": "xabikos"
},
"name": "JavaScriptSnippets",
"publisher": "xabikos",
"version": "1.8.0"
},
{
"metadata": {
"id": "dff6b801-247e-40e9-82e8-8c9b1d19d1b8",
"publisherId": "christian-kohler.npm-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "npm-intellisense",
"publisher": "christian-kohler",
"version": "1.3.1"
},
{
"metadata": {
"id": "a41c1549-4053-44d4-bf30-60fc809b4a86",
"publisherId": "christian-kohler.path-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "path-intellisense",
"publisher": "christian-kohler",
"version": "2.3.0"
},
{
"metadata": {
"id": "96fa4707-6983-4489-b7c5-d5ffdfdcce90",
"publisherId": "esbenp.prettier-vscode",
"publisherDisplayName": "esbenp"
},
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "5.7.1"
},
{
"metadata": {
"id": "1b747f06-3789-4ebd-ac99-f1fe430c3347",
"publisherId": "alefragnani.project-manager",
"publisherDisplayName": "alefragnani"
},
"name": "project-manager",
"publisher": "alefragnani",
"version": "11.3.1"
},
{
"metadata": {
"id": "6c0f990e-512c-4b25-a01e-0d6578f0b42a",
"publisherId": "amatiasq.sort-imports",
"publisherDisplayName": "amatiasq"
},
"name": "sort-imports",
"publisher": "amatiasq",
"version": "6.2.2"
},
{
"metadata": {
"id": "261cac81-cd7b-4555-bb41-0c2d2bcd3e70",
"publisherId": "Gruntfuggly.todo-tree",
"publisherDisplayName": "Gruntfuggly"
},
"name": "todo-tree",
"publisher": "Gruntfuggly",
"version": "0.0.187"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "2.1.13"
},
{
"metadata": {
"id": "8d088af2-ecd1-4b8f-93e9-322125c47b3c",
"publisherId": "BriteSnow.vscode-toggle-quotes",
"publisherDisplayName": "BriteSnow"
},
"name": "vscode-toggle-quotes",
"publisher": "BriteSnow",
"version": "0.3.3"
}
]
// Placez vos combinaisons de touches dans ce fichier pour remplacer les valeurs par défaut
[
{
"key": "ctrl+shift+numpad_divide",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+numpad_divide",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+oem_2",
"command": "-editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+e",
"command": "eslint.applyAutoFix"
},
{
"key": "ctrl+shift+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+oem_7",
"command": "editor.togglequotes"
},
{
"key": "ctrl+oem_7",
"command": "-editor.togglequotes"
}
]
{
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"breadcrumbs.enabled": true,
"editor.tabSize": 2,
"sort-imports.default-sort-style": "module",
"terminal.integrated.shell.windows": "C:\\windows\\System32\\cmd.exe",
"editor.formatOnSave": true,
"terminal.integrated.scrollback": 10000,
"editor.suggestSelection": "first",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"projectManager.openInNewWindowWhenClickingInStatusBar": true,
"projectManager.svn.baseFolders": ["D:\\workspaces"],
"projectManager.svn.ignoredFolders": [
"node_modules",
"out",
"typings",
"test"
],
"sync.gist": "e3196d73e32b434c7ac61f626c28e4f6",
"npm-intellisense.importLinebreak": "",
"npm-intellisense.showBuildInLibs": true,
"flow.runOnAllFiles": true,
"git.confirmSync": false,
"workbench.colorTheme": "Noctis",
"flow.useLSP": false,
"javascript.validate.enable": false,
"projectManager.git.baseFolders": ["D:\\Projects", "D:\\workspaces"],
"eslint.packageManager": "npm",
"javascript.updateImportsOnFileMove.enabled": "always",
"window.newWindowDimensions": "inherit",
"window.openFoldersInNewWindow": "on",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.editor.limit.enabled": true,
"git.autofetch": true,
"search.smartCase": true,
"typescript.disableAutomaticTypeAcquisition": true,
"typescript.format.enable": false,
"typescript.format.insertSpaceAfterCommaDelimiter": false,
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"typescript.format.insertSpaceAfterKeywordsInControlFlowStatements": false,
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"typescript.format.insertSpaceAfterSemicolonInForStatements": false,
"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": false,
"typescript.reportStyleChecksAsWarnings": false,
"typescript.suggest.autoImports": false,
"typescript.suggest.completeJSDocs": false,
"typescript.suggest.enabled": false,
"typescript.suggest.includeAutomaticOptionalChainCompletions": false,
"typescript.suggest.paths": false,
"typescript.suggestionActions.enabled": false,
"typescript.surveys.enabled": false,
"typescript.validate.enable": false,
"[markdown]": {
"editor.wordWrap": "wordWrapColumn",
"editor.wordWrapColumn": 80
},
"projectManager.any.ignoredFolders": [
"node_modules",
"out",
"typings",
"test"
],
"editor.renameOnType": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"todo-tree.tree.showScanModeButton": false,
"git.enableSmartCommit": true
}
{
"Print to console log": {
"prefix": "clog",
"body": [
"console.log('$TM_FILENAME::$TM_LINE_NUMBER::$1 =>', $1)"
],
"description": "Log output to console"
},
"transforme en arrow fct complète": {
"prefix": "arro",
"body": [
"{",
"console.log('$TM_FILENAME::$TM_LINE_NUMBER:: =>')",
"return $CLIPBOARD",
"}"
]
},
"crée une constante de reducer": {
"prefix": "setConst",
"body": [
"export const $1 = _('$1')",
"export const $2 = createAction($1, ($3) => ({ $3 }))"
]
},
"class function to arrow": {
"prefix": "classToArro",
"body": ["${CLIPBOARD/(.*)\\((.*)\\)/export const $1 = ($2) => /}"]
}
}
{
"new connexion redux": {
"prefix": "reactCo",
"body": [
"import { connect } from 'react-redux'",
"",
"import ${TM_DIRECTORY/(.*)\\\\(.*)$/$2/} from './${TM_DIRECTORY/(.*)\\\\(.*)$/$2/}'",
"",
"const mapStateToProps = () => ({})",
"",
"const mapDispatchToProps = () => ({})",
"",
"export default connect(mapStateToProps, mapDispatchToProps)(${TM_DIRECTORY/(.*)\\\\(.*)$/$2/})"
]
}
}
{
"new composant": {
"prefix": "react",
"body": [
"import React from 'react'",
"",
"type Props = {}",
"",
"const $TM_FILENAME_BASE = (props: Props) => $1",
"",
"export default $TM_FILENAME_BASE"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment