Created
December 13, 2018 08:56
-
-
Save DavidBabel/ef3a7ff05e4316fb833333be6b03fe53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
///////////////////// | |
///// workbench ///// | |
///////////////////// | |
// // maximize / reduce editor | |
// { | |
// "key": "alt+enter", | |
// "command": "workbench.action.maximizeEditor", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "shift+alt+enter", | |
// "command": "workbench.action.evenEditorWidths", | |
// "when": "editorTextFocus" | |
// }, | |
// switch projects left/right | |
{ | |
"key": "shift+alt+cmd+left", | |
"command": "workbench.action.showPreviousWindowTab" | |
}, | |
{ | |
"key": "shift+alt+cmd+right", | |
"command": "workbench.action.showNextWindowTab" | |
}, | |
// toggle activity bar | |
{ | |
"key": "alt+cmd+b", | |
"command": "workbench.action.toggleActivityBarVisibility" | |
}, | |
// toggle dev panel | |
{ | |
"key": "alt+cmd+j", | |
"command": "workbench.action.toggleDevTools", | |
"when": "editorTextFocus" | |
}, | |
// restore more constant binding for Git Panel Display | |
{ | |
"key": "shift+cmd+g", | |
"command": "workbench.view.scm" | |
}, | |
// select all occurences in document | |
{ | |
"key": "shift+cmd+a", | |
"command": "editor.action.selectHighlights", | |
"when": "editorFocus" | |
}, | |
// delete lines avec backspace | |
{ | |
"key": "shift+cmd+backspace", | |
"command": "editor.action.deleteLines", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
// effacer le mot à droite | |
{ | |
"key": "shift+alt+backspace", | |
"command": "deleteWordRight", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
// cibler le fichier courant dans l'explorer | |
{ | |
"key": "cmd+e", | |
"command": "workbench.files.action.showActiveFileInExplorer" | |
}, | |
// ne pas quitter le projet si il il n'y a plus de fentetre | |
// utiliser le default cmd+shift+w à la place | |
{ | |
"key": "cmd+w", | |
"command": "-workbench.action.closeWindow", | |
"when": "!editorIsOpen && !multipleEditorGroups" | |
}, | |
// more consistent comment shortcut & block | |
{ | |
"key": "cmd+[Period]", | |
"command": "editor.action.commentLine", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+cmd+[Period]", | |
"command": "editor.action.blockComment", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
// new shorcuts for breadcrumb | |
{ | |
"key": "cmd+=", | |
"command": "breadcrumbs.focusAndSelect" | |
}, | |
{ | |
"key": "cmd+=", | |
"command": "breadcrumbs.selectEditor", | |
"when": "breadcrumbsActive && breadcrumbsVisible" | |
}, | |
{ | |
"key": "cmd+left", | |
"command": "breadcrumbs.focusPrevious", | |
"when": "breadcrumbsActive && breadcrumbsVisible" | |
}, | |
{ | |
"key": "cmd+right", | |
"command": "breadcrumbs.focusNext", | |
"when": "breadcrumbsActive && breadcrumbsVisible" | |
}, | |
// inverse de cmd+D pour selectionner le pattern precedent | |
{ | |
"key": "alt+cmd+d", | |
"command": "editor.action.addSelectionToPreviousFindMatch", | |
"when": "editorTextFocus" | |
}, | |
// toggle terminal | |
{ | |
"key": "cmd+[Backquote]", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
// autorise de taper cmd+alt+p quand cmd+p est ouvert | |
{ | |
"key": "shift+cmd+p", | |
"command": "-workbench.action.quickOpenNavigatePreviousInFilePicker", | |
"when": "inFilesPicker && inQuickOpen" | |
}, | |
// switch entre les differentes fenetres | |
{ | |
"key": "ctrl+cmd+p", | |
"command": "workbench.action.quickSwitchWindow" | |
}, | |
{ | |
"key": "ctrl+cmd+p", | |
"command": "workbench.action.quickOpenNavigateNext", | |
"when": "inWindowsPicker" | |
}, | |
// joindre avec la ligne suivante | |
{ | |
"key": "cmd+j", | |
"command": "editor.action.joinLines", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
// désactiver les touches de zoom | |
{ | |
"key": "cmd+-", | |
"command": "-workbench.action.zoomOut" | |
}, | |
{ | |
"key": "cmd+=", | |
"command": "-workbench.action.zoomIn" | |
}, | |
// réautoriser la recherche dans les configs persos quand on édite la config de vscode | |
{ | |
"key": "cmd+f", | |
"command": "-settings.action.search", | |
"when": "inSettingsEditor" | |
}, | |
// fallback | |
{ | |
"key": "alt+cmd+f", | |
"command": "settings.action.search", | |
"when": "inSettingsEditor" | |
}, | |
//////////////////// | |
///// explorer ///// | |
//////////////////// | |
// enlever ce bind permet d'ouvrir les fichier avec enter (au lieu de cmd+enter) | |
{ | |
"key": "enter", | |
"command": "-renameFile", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
// passer le renomage des fichier en shift + enter | |
{ | |
"key": "shift+enter", | |
"command": "renameFile", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
// commande | |
{ | |
"key": "cmd+enter", | |
"command": "explorer.openToSide", | |
"when": "explorerViewletFocus && explorerViewletVisible" | |
}, | |
// création de fichier et de dossier dans l'explorateur | |
{ | |
"key": "cmd+n", | |
"command": "explorer.newFile", | |
"when": "explorerViewletFocus && explorerViewletVisible" | |
}, | |
{ | |
"key": "shift+cmd+n", | |
"command": "explorer.newFolder" | |
}, | |
///////////////////// | |
///// formatage ///// | |
///////////////////// | |
{ | |
"key": "cmd+k f", | |
"command": "editor.action.formatSelection", | |
"when": "editorHasSelection && editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "alt+f", | |
"command": "editor.action.formatDocument", | |
"when": "editorTextFocus && !editorReadonly" | |
}, | |
{ | |
"key": "shift+alt+f", | |
"command": "eslint.executeAutofix", | |
"when": "editorTextFocus" | |
}, | |
////////////////////// | |
///// navigation ///// | |
////////////////////// | |
// navigation avec tab entre les input box | |
{ | |
"key": "tab", | |
"command": "search.focus.nextInputBox", | |
"when": "inputBoxFocus && searchViewletVisible" | |
}, | |
{ | |
"key": "shift+tab", | |
"command": "search.focus.previousInputBox", | |
"when": "inputBoxFocus && searchViewletVisible && !searchInputBoxFocus" | |
}, | |
// navigation de curseur | |
{ | |
"key": "ctrl+left", | |
"command": "workbench.action.navigateBack" | |
}, | |
{ | |
"key": "ctrl+right", | |
"command": "workbench.action.navigateForward" | |
}, | |
// navigation entre tous les elements | |
{ | |
"key": "home", | |
"command": "workbench.action.navigateLeft" | |
}, | |
{ | |
"key": "end", | |
"command": "workbench.action.navigateRight" | |
}, | |
// ordre important | |
{ | |
"key": "pageup", | |
"command": "workbench.action.navigateUp" | |
}, | |
{ | |
"key": "pagedown", | |
"command": "workbench.action.navigateDown" | |
}, | |
{ | |
"key": "pageup", | |
"command": "workbench.files.action.focusOpenEditorsView", | |
"when": "explorerViewletFocus && explorerViewletVisible" | |
}, | |
{ | |
"key": "pagedown", | |
"command": "workbench.files.action.focusFilesExplorer", | |
"when": "explorerViewletFocus && explorerViewletVisible" | |
}, | |
// super shortcut pour cibler l'explorer d'où qu'on soit | |
{ | |
"key": "cmd+shift+e", | |
"command": "workbench.files.action.focusFilesExplorer" | |
}, | |
// rafraichir l'explorer | |
{ | |
"key": "shift+alt+cmd+e", | |
"command": "workbench.files.action.refreshFilesExplorer" | |
}, | |
// desactivés les comportement par default | |
{ | |
"key": "pageup", | |
"command": "-cursorPageUp", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "pagedown", | |
"command": "-cursorPageDown", | |
"when": "editorTextFocus" | |
}, | |
// split ou join des editeurs | |
{ | |
"key": "shift+end", | |
"command": "workbench.action.splitEditor" | |
}, | |
{ | |
"key": "shift+home", | |
"command": "workbench.action.joinTwoGroups" | |
}, | |
// changer la taille de l'éditeur / du menu courant | |
{ | |
"key": "shift+pageup", | |
"command": "workbench.action.increaseViewSize" | |
}, | |
{ | |
"key": "shift+pagedown", | |
"command": "workbench.action.decreaseViewSize" | |
}, | |
////////////////////// | |
///// extensions ///// | |
////////////////////// | |
// -> ace jumper | |
{ | |
"key": "alt+enter", | |
"command": "-editor.action.selectAllMatches", | |
"when": "editorFocus && findWidgetVisible" | |
}, | |
{ | |
"key": "alt+enter", | |
"command": "-debug.openBreakpointToSide", | |
"when": "breakpointsFocused" | |
}, | |
{ | |
"key": "cmd+i", | |
"command": "extension.aceJump" | |
}, | |
// -> multiline jumper | |
// block jumper | |
// { | |
// "key": "cmd+up", | |
// "command": "lineJumper.moveUp", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "cmd+down", | |
// "command": "lineJumper.moveDown", | |
// "when": "editorTextFocus" | |
// }, | |
// block jumper with select | |
// { | |
// "key": "shift+cmd+up", | |
// "command": "lineJumper.selectUp", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "shift+cmd+down", | |
// "command": "lineJumper.selectDown", | |
// "when": "editorTextFocus" | |
// }, | |
// disable useless to restore default move line | |
{ | |
"key": "alt+up", | |
"command": "-lineJumper.moveUp", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+alt+up", | |
"command": "-lineJumper.selectUp", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "alt+down", | |
"command": "-lineJumper.moveDown", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+alt+down", | |
"command": "-lineJumper.selectDown", | |
"when": "editorTextFocus" | |
}, | |
// -> open projects | |
{ | |
"key": "alt+cmd+p", | |
"command": "vscode-open-project.openProject" | |
}, | |
// -> toggle semicolon | |
// ajoute un , ou un ; en fin de ligne | |
// { | |
// "key": "cmd+;", | |
// "command": "extension.toggleSemicolon", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "cmd+,", | |
// "command": "extension.toggleComma", | |
// "when": "editorTextFocus" | |
// }, | |
// -> change case | |
{ | |
"key": "cmd+l", | |
"command": "extension.changeCase.commands", | |
"when": "editorFocus" | |
}, | |
// -> switch string quote " -> ' -> ` -> " ... | |
// (javascript uniquement) | |
// { | |
// "key": "cmd+shift+`", | |
// "command": "esQuotes.transformBetweenQuotes", | |
// "when": "editorTextFocus && editorLangId == 'javascript'" | |
// }, | |
// { | |
// "key": "cmd+3", | |
// "command": "esQuotes.transformBetweenQuotes", | |
// "when": "editorTextFocus && editorLangId == 'javascript'" | |
// }, | |
// { | |
// "key": "cmd+4", | |
// "command": "esQuotes.transformBetweenQuotes", | |
// "when": "editorTextFocus" | |
// }, | |
// -> calcule et remplace | |
{ | |
"key": "alt+c", | |
"command": "extension.calculateReplace", | |
"when": "editorTextFocus" | |
}, | |
// -> git lens | |
{ | |
"key": "shift+alt+[Period]", | |
"command": "-gitlens.showCommitSearch" | |
}, | |
// -> pastry / paste multicursor numbers | |
// { | |
// "key": "shift+cmd+0", | |
// "command": "extension.textPastry.0toX", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "shift+cmd+1", | |
// "command": "extension.textPastry.1toX", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "shift+cmd+2", | |
// "command": "extension.textPastry.AtoX", | |
// "when": "editorTextFocus" | |
// }, | |
// -> fast deploy blocks of code | |
// { | |
// "key": "alt+d", | |
// "command": "extension.doFastDeploy" | |
// }, | |
// disable default | |
{ | |
"key": "alt+f", | |
"command": "-extension.doFastDeploy" | |
}, | |
// -> fast & simple select block () [] {} "" '' | |
{ | |
"key": "cmd+k 3", | |
"command": "extension.selectEitherQuote", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k 4", | |
"command": "extension.selectEitherQuote", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k 5", | |
"command": "extension.selectParenthesis", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k [Minus]", | |
"command": "extension.selectParenthesis", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k alt+5", | |
"command": "extension.selectCurlyBrackets", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k alt+[Minus]", | |
"command": "extension.selectCurlyBrackets", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k shift+alt+5", | |
"command": "extension.selectSquareBrackets", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k shift+alt+[Minus]", | |
"command": "extension.selectSquareBrackets", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k [Backquote]", | |
"command": "extension.selectInTag", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k shift+[Backquote]", | |
"command": "extension.selectInTag", | |
"when": "editorTextFocus" | |
}, | |
// -> coffeescript preview | |
{ | |
"key": "cmd+k c", | |
"command": "extension.coffeescript-preview", | |
"when": "editorTextFocus && editorLangId == 'coffeescript'" | |
}, | |
// -> macros | |
// { | |
// "key": "cmd+[BracketRight]", | |
// "command": "macros.addTemplate", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "cmd+[Quote]", | |
// "command": "macros.addFragment", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "cmd+5", | |
// "command": "macros.addCurly", | |
// "when": "editorTextFocus" | |
// }, | |
// disable anoying shortcut | |
{ | |
"key": "cmd+k s", | |
"command": "-quokka.stopCurrent", | |
"when": "!quokka.isLiveShareClient && !terminalFocus" | |
}, | |
////////////////// | |
///// clever ///// | |
////////////////// | |
//// clever select ///// | |
{ | |
"key": "cmd+r", | |
"command": "clever.blockSelect.cleverSelect", | |
"when": "editorTextFocus" | |
}, | |
// clever select quotes | |
{ | |
"key": "cmd+k 3", | |
"command": "clever.blockSelect.quotes", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k 4", | |
"command": "clever.blockSelect.quotes", | |
"when": "editorTextFocus" | |
}, | |
// clever select parenthesis | |
{ | |
"key": "cmd+k 5", | |
"command": "clever.blockSelect.parenthesis", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k [Minus]", | |
"command": "clever.blockSelect.parenthesis", | |
"when": "editorTextFocus" | |
}, | |
// clever select square bracket | |
{ | |
"key": "cmd+k shift+alt+5", | |
"command": "clever.blockSelect.squareBrackets", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k shift+alt+[Minus]", | |
"command": "clever.blockSelect.squareBrackets", | |
"when": "editorTextFocus" | |
}, | |
// clever select curly bracket | |
{ | |
"key": "cmd+k alt+5", | |
"command": "clever.blockSelect.curlyBrackets", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+k alt+[Minus]", | |
"command": "clever.blockSelect.curlyBrackets", | |
"when": "editorTextFocus" | |
}, | |
// clever select angle bracket | |
{ | |
"key": "cmd+k [Backquote]", | |
"command": "clever.blockSelect.inTag", | |
"when": "editorTextFocus" | |
}, | |
// maximize | |
{ | |
"key": "shift+cmd+enter", | |
"command": "clever.maximize.toggleWithSidebar", | |
"when": "editorTextFocus" | |
}, | |
// switch quotes | |
{ | |
"key": "cmd+4", | |
"command": "clever.string.nextQuotes", | |
"when": "editorTextFocus" | |
}, | |
// toggle endline | |
{ | |
"key": "cmd+[Comma]", | |
"command": "clever.toggleEnd.semicolon", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+[KeyM]", | |
"command": "clever.toggleEnd.comma", | |
"when": "editorTextFocus" | |
}, | |
// 0 to n | |
{ | |
"key": "shift+cmd+0", | |
"command": "clever.multipast.0toN", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+cmd+1", | |
"command": "clever.multipast.1toN", | |
"when": "editorTextFocus" | |
}, | |
// { | |
// "key": "shift+cmd+a", | |
// "command": "clever.multipast.atoN", | |
// "when": "editorTextFocus" | |
// }, | |
// { | |
// "key": "shift+alt+cmd+a", | |
// "command": "clever.multipast.AtoN", | |
// "when": "editorTextFocus" | |
// }, | |
// line jump | |
{ | |
"key": "cmd+up", | |
"command": "clever.fastJump.small.up", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+down", | |
"command": "clever.fastJump.small.down", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+cmd+up", | |
"command": "clever.fastJump.small.selectUp", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+cmd+down", | |
"command": "clever.fastJump.small.selectDown", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+[BracketRight]", | |
"command": "clever.string.insertTemplateVar", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+[Quote]", | |
"command": "clever.macros.addFragment", | |
"when": "editorTextFocus" | |
}, | |
// manage fast open sublime text style | |
{ | |
"key": "right", | |
"command": "clever.macros.fastOpenFile", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
{ | |
"key": "enter", | |
"command": "clever.macros.openAndKeepFile", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
{ | |
"key": "left", | |
"command": "clever.macros.openFile", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
///// option to tests : | |
// editor.find.globalFindClipboard : true | |
// search.globalFindClipboard : true | |
// shortcut to manage zoom level in case of misschange | |
"window.zoomLevel": 0, | |
////////////////// | |
///// theme ////// | |
////////////////// | |
"window.title": "${activeEditorName}${separator}${rootName}${separator}${activeEditorMedium}${separator}${dirty}", | |
// erase default multi select behaviour | |
// allowing preserve the "open to side" on CMD | |
"workbench.list.multiSelectModifier": "alt", | |
// hide the debugger column | |
"editor.glyphMargin": false, | |
// hide the side bar and move it to the right | |
// "workbench.activityBar.visible": false, | |
"workbench.sideBar.location": "right", | |
// disable minimap | |
"editor.minimap.enabled": false, | |
// fixe la taille des éditeurs ouverts | |
// DEPRECATED, need to be restored : | |
// "explorer.openEditors.dynamicHeight": false, | |
"explorer.openEditors.visible": 7, | |
// disable welcome window | |
"workbench.startupEditor": "none", | |
// masquer les tab de fichiers | |
// "workbench.editor.showTabs": false, | |
// "workbench.editor.labelFormat": "long", | |
"workbench.editor.tabSizing": "shrink", | |
// light tab is not saved | |
"workbench.editor.highlightModifiedTabs": true, | |
// clignotement doux du curseur | |
"editor.cursorBlinking": "smooth", | |
// taille du curseur | |
"editor.cursorWidth": 4, | |
// affiche des points pour compter les espaces | |
"editor.renderWhitespace": "boundary", | |
// affiche la ligne en cours | |
"editor.renderLineHighlight": "all", | |
"editor.selectionHighlight": true, | |
///// MacOS | |
// active les tab MacOs par projet | |
"window.nativeTabs": true, | |
"terminal.external.osxExec": "iTerm.app", | |
// permet de scroller plus smoothly | |
"editor.smoothScrolling": true, | |
// localiser les infos typescript | |
"typescript.locale": "en", | |
// breadcrumbs | |
"breadcrumbs.enabled": true, | |
"breadcrumbs.symbolPath": "off", | |
/////////////////////// | |
////// behaviour ////// | |
/////////////////////// | |
// clever tab completion | |
"editor.tabCompletion": "on", | |
// prevent auto close editors | |
"window.closeWhenEmpty": false, | |
// enable script npm view | |
"npm.enableScriptExplorer": true, | |
// desactive le drag and drop de texte | |
"editor.dragAndDrop": false, | |
// ne pas sauter sur le fichier ouvert à chaque fois (cmd+e) | |
"explorer.autoReveal": false, | |
"problems.autoReveal": false, | |
// ignorer les fichier contenus dans .gitignore lors des recherches | |
"search.useIgnoreFiles": true, | |
"search.useGlobalIgnoreFiles": true, | |
// permet de recherche plus précise si l'element recherché à des majuscules | |
"search.smartCase": true, | |
// permet de conserver les fichiers supprimer par un changement de branche | |
/// now default | |
// "workbench.editor.closeOnFileDelete": false, | |
// permet de ne pas ouvrir plusieurs fois le meme fichier | |
"workbench.editor.revealIfOpen": true, | |
// désactiver le pliage de code | |
// permet de gagner une place monstrueuse dans l'éditeur | |
"editor.folding": false, | |
// sauvegarde de l'état des fichiers ouverts dans tous les cas | |
"files.hotExit": "onExitAndWindowClose", | |
"files.trimTrailingWhitespace": true, | |
// set the default enline to linux one | |
"files.eol": "\n", | |
// conserver les fichier ouvert avec ctrl + p | |
"workbench.editor.enablePreviewFromQuickOpen": false, | |
// enleve des warning inutiles quand trop de fichier à surveiller | |
"git.ignoreLimitWarning": true, | |
// ou pour la synchronisation | |
"git.confirmSync": false, | |
// Complete functions with their parameter signature. | |
"javascript.suggest.completeFunctionCalls": true, | |
"typescript.suggest.completeFunctionCalls": true, | |
////////////////////////// | |
////// intellisense ////// | |
////////////////////////// | |
// supprime les suggestions angular1 & ionic | |
"html.suggest.angular1": false, | |
"html.suggest.ionic": false, | |
// affiche immediatement les suggestions | |
"editor.quickSuggestionsDelay": 0, | |
"editor.hover.delay": 200, | |
// mettre les snippets utilisateurs toujours en haut | |
"editor.snippetSuggestions": "top", | |
// priorise les variables proches dans intellisense | |
"editor.suggest.localityBonus": true, | |
////////////////// | |
////// code ////// | |
////////////////// | |
// pour qu'il trouve le eslint global | |
"eslint.packageManager": "yarn", | |
// active / deactive flow | |
"flow.enabled": true, | |
"flow.useNPMPackagedFlow": true, | |
// desactivé pour eslint / flow | |
"javascript.validate.enable": false, | |
// desactive le telechargement de type typescript | |
"typescript.check.npmIsInstalled": false, | |
// snippets de fonctions plus complets (suggestiond de paramètres) | |
"typescript.useCodeSnippetsOnMethodSuggest": true, | |
// code style | |
"editor.detectIndentation": false, | |
"editor.tabSize": 2, | |
// emmet jsx autocomplete | |
"emmet.syntaxProfiles": { | |
"javascript": "jsx" | |
}, | |
"emmet.includeLanguages": { | |
"javascript": "javascriptreact" | |
}, | |
// empeche le formateur par default de faire du caca | |
// "eslint.autoFixOnSave": true, | |
"tslint.autoFixOnSave": true, | |
// prettier options | |
"prettier.singleQuote": true, | |
// formatage du code automatique | |
"editor.formatOnSave": true, | |
// "editor.formatOnType": true, | |
// "editor.formatOnPaste": true, | |
"typescript.format.enable": true, | |
"javascript.format.enable": true, | |
// codelens, references de code | |
// "javascript.referencesCodeLens.enabled": true, | |
// "typescript.referencesCodeLens.enabled": true, | |
"typescript.implementationsCodeLens.enabled": true, | |
////////////////////////////// | |
////// file association ////// | |
////////////////////////////// | |
"files.associations": { | |
".*scss": "sass", | |
".*rc": "shellscript", | |
"prompt_*_setup": "shellscript", | |
"aliases": "shellscript", | |
".projects": "shellscript", | |
"ogury": "shellscript", | |
"colors": "shellscript", | |
"keys": "shellscript", | |
"ssh": "shellscript", | |
"*.cfg": "shellscript", | |
"path": "shellscript" | |
}, | |
"files.watcherExclude": { | |
"**/Library/**": true, // librairie MacOs | |
"**/.git/objects/**": true, | |
"**/node_modules/**": true | |
}, | |
/////////////////// | |
////// debug ////// | |
/////////////////// | |
"debug.inlineValues": true, | |
////////////////////// | |
////// terminal ////// | |
////////////////////// | |
// desactive certaine commande pour quitter le terminal au clavier | |
"terminal.integrated.commandsToSkipShell": [ | |
"workbench.action.navigateLeft", | |
"workbench.action.navigateRight", | |
"workbench.action.navigateTop", | |
"workbench.action.navigateDown", | |
// default | |
"editor.action.toggleTabFocusMode", | |
"workbench.action.debug.continue", | |
"workbench.action.debug.pause", | |
"workbench.action.debug.restart", | |
"workbench.action.debug.run", | |
"workbench.action.debug.start", | |
"workbench.action.debug.stop", | |
"workbench.action.focusActiveEditorGroup", | |
"workbench.action.focusFirstEditorGroup", | |
"workbench.action.focusSecondEditorGroup", | |
"workbench.action.focusThirdEditorGroup", | |
"workbench.action.openNextRecentlyUsedEditorInGroup", | |
"workbench.action.openPreviousRecentlyUsedEditorInGroup", | |
"workbench.action.quickOpen", | |
"workbench.action.showCommands", | |
"workbench.action.terminal.clear", | |
"workbench.action.terminal.copySelection", | |
"workbench.action.terminal.focus", | |
"workbench.action.terminal.focusAtIndex1", | |
"workbench.action.terminal.focusAtIndex2", | |
"workbench.action.terminal.focusAtIndex3", | |
"workbench.action.terminal.focusAtIndex4", | |
"workbench.action.terminal.focusAtIndex5", | |
"workbench.action.terminal.focusAtIndex6", | |
"workbench.action.terminal.focusAtIndex7", | |
"workbench.action.terminal.focusAtIndex8", | |
"workbench.action.terminal.focusAtIndex9", | |
"workbench.action.terminal.focusNext", | |
"workbench.action.terminal.focusPrevious", | |
"workbench.action.terminal.kill", | |
"workbench.action.terminal.new", | |
"workbench.action.terminal.paste", | |
"workbench.action.terminal.runActiveFile", | |
"workbench.action.terminal.runSelectedText", | |
"workbench.action.terminal.scrollDown", | |
"workbench.action.terminal.scrollDownPage", | |
"workbench.action.terminal.scrollToBottom", | |
"workbench.action.terminal.scrollToTop", | |
"workbench.action.terminal.scrollUp", | |
"workbench.action.terminal.scrollUpPage", | |
"workbench.action.terminal.toggleTerminal" | |
], | |
//////////////////////// | |
////// extensions ////// | |
//////////////////////// | |
"extensions.autoUpdate": true, | |
// -> open projects : | |
"vscode-open-project.config": "/Users/david/.vscodeprojects.json", | |
// -> statusbar commands | |
"statusbar_command.commands": [ | |
{ | |
"text": "$(terminal)", | |
"tooltip": "toogle terminal", | |
"alignment": "left", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"text": "$(tools)", | |
"tooltip": "edit settings", | |
"alignment": "right", | |
"command": "workbench.action.openGlobalSettings" | |
}, | |
{ | |
"text": "$(keyboard)", | |
"tooltip": "toogle terminal", | |
"alignment": "right", | |
"command": "workbench.action.openGlobalKeybindingsFile" | |
} | |
], | |
// restore default edit setting with json mode | |
"workbench.settings.editor": "json", | |
// -> jest ext | |
"jest.enableSnapshotUpdateMessages": false, | |
// -> vscode-open-project | |
"vscode-open-project.codePath": "/usr/local/bin/code", | |
// -> vscode_custom_css | |
"vscode_custom_css.imports": [ | |
"file:///Users/david/Dropbox/mackup/Library/Application%20Support/Code/User/custom.css" | |
], | |
// -> docker explorer | |
// clean interface | |
// "docker-explorer.showDockerContainers": true, | |
// "docker-explorer.showDockerImages": true, | |
// "docker-explorer.showAzureRegistries": false, | |
// "docker-explorer.showDockerHubTreeView": false, | |
// "docker-explorer.showSuggestedDockerImages": false, | |
// -> todo highlight : | |
"TodoParser": { | |
"include": [ | |
"js", | |
"html", | |
"css" | |
], | |
"folderExclude": [ | |
"node_modules", | |
"bower_components", | |
".vscode" | |
], | |
"markers": [ | |
"BUG", | |
"TODO", | |
"FIXME", | |
"NOTE" | |
], | |
"autoDefaultMarkers": true | |
}, | |
"todohighlight.isEnable": true, | |
"todohighlight.keywords": [ | |
{ | |
"text": "BUG:", | |
"color": "#fff", | |
"backgroundColor": "red", | |
"overviewRulerColor": "red" | |
}, | |
{ | |
"text": "TODO:", | |
"color": "white", | |
"backgroundColor": "darkcyan", | |
"overviewRulerColor": "cyan" | |
}, | |
{ | |
"text": "FIXME:", | |
"color": "black", | |
"backgroundColor": "orange", | |
"overviewRulerColor": "orange" | |
}, | |
{ | |
"text": "NOTE:", | |
"color": "black", | |
"backgroundColor": "lightgreen", | |
"overviewRulerColor": "" | |
}, | |
{ | |
"text": "BUG", | |
"color": "#fff", | |
"backgroundColor": "red", | |
"overviewRulerColor": "red" | |
}, | |
{ | |
"text": "TODO", | |
"color": "white", | |
"backgroundColor": "darkcyan", | |
"overviewRulerColor": "cyan" | |
}, | |
{ | |
"text": "FIXME", | |
"color": "black", | |
"backgroundColor": "orange", | |
"overviewRulerColor": "orange" | |
}, | |
{ | |
"text": "NOTE", | |
"color": "black", | |
"backgroundColor": "lightgreen", | |
"overviewRulerColor": "" | |
} | |
], | |
/////////////////// | |
////// divers ///// | |
/////////////////// | |
// stats utilisation | |
"telemetry.enableTelemetry": false, | |
"telemetry.enableCrashReporter": false, | |
"explorer.confirmDragAndDrop": false, | |
"explorer.confirmDelete": false, | |
"diffEditor.ignoreTrimWhitespace": false, | |
"gitlens.codeLens.scopes": [ | |
"document", | |
"containers" | |
], | |
"gitlens.hovers.currentLine.over": "line", | |
"gitlens.currentLine.enabled": false, | |
"gitlens.keymap": "alternate", | |
"gitlens.advanced.messages": { | |
"suppressGitDisabledWarning": true, | |
"suppressShowKeyBindingsNotice": true | |
}, | |
"gitlens.historyExplorer.enabled": true, | |
"workbench.activityBar.visible": true, | |
// "sync.gist": "4fdb80cd9efd3e711734c3f037b084c2", | |
// "sync.host": "", | |
// "sync.pathPrefix": "", | |
// "sync.quietSync": false, | |
// "sync.askGistName": false, | |
// "sync.removeExtensions": true, | |
// "sync.syncExtensions": true, | |
// "sync.autoDownload": false, | |
// "sync.autoUpload": false, | |
// "sync.lastUpload": "2018-07-20T23:12:55.039Z", | |
// "sync.lastDownload": "", | |
// "sync.forceDownload": false, | |
// "javascript.updateImportsOnFileMove.enabled": "always", | |
"workbench.iconTheme": "vscode-simpler-icons", | |
"clever.macros": { | |
"addFragment": [ | |
"type:<>\n$1\n</>" | |
], | |
"fastOpenFile": [ | |
"list.select", // open current hover file | |
"wait:20", // wait for 20ms before next (default 50ms) | |
"workbench.action.focusSideBar" // send focus back to the file explorer | |
], | |
"openAndKeepFile": [ | |
"list.select", // open current hover file | |
"workbench.action.files.save", // this will keep the file open | |
"wait:20", // wait for 20ms before next (default 50ms) | |
"workbench.action.focusSideBar" // send focus back to the file explorer | |
], | |
"openFile": [ | |
"list.select", // open current hover file | |
"workbench.action.files.save" // this will keep the file open | |
] | |
}, | |
"gitlens.views.fileHistory.enabled": true, | |
"gitlens.views.lineHistory.enabled": true | |
// , | |
// "clever.macros.test": [ | |
// { | |
// "command": "type", | |
// "args": { | |
// "text": "test" | |
// } | |
// } | |
// ] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment