Table des matières

VSCode

Mes paramètres

User Setting

Le thème “GitHub Dark” est sympa aussi

{
    "telemetry.telemetryLevel": "off",
    "workbench.colorTheme": "Bearded Themanopia (Experimental)",
    "editor.autoIndent": "advanced",
    "editor.wordWrap": "on",
    "zenMode.hideLineNumbers": false,
    "zenMode.centerLayout": false,
    "security.workspace.trust.untrustedFiles": "open",
    "editor.renderWhitespace": "trailing",
    "editor.linkedEditing": true,
    "editor.suggest.insertMode": "replace",
    "editor.acceptSuggestionOnCommitCharacter": false,
    "scm.autoReveal": false,
    "workbench.tree.indent": 15,
    "workbench.tree.renderIndentGuides": "always",
    "emmet.triggerExpansionOnTab": true,
    "editor.fontSize": 15,
    "php.suggest.basic": false,
    "gitlens.graph.minimap.enabled": false,
    "gitlens.codeLens.enabled": false,
    "gitlens.currentLine.enabled": true,
    "database-client.showFilter": true,
    "editor.fontFamily": "'Fira Code Light','Consolas', 'Courier New', monospace",
    "editor.lineHeight": 1.5,
    "terminal.integrated.copyOnSelection": true,
    "explorer.autoReveal": false,
    "remote.SSH.connectTimeout": 120,
    "auto-close-tag.SublimeText3Mode": true,
    "htmlEndTagLabels.labelPrefix": " --> ",
    "intelephense.diagnostics.undefinedFunctions": false,
    "intelephense.diagnostics.undefinedMethods": false,
    "intelephense.diagnostics.undefinedClassConstants": false,
    "intelephense.diagnostics.undefinedTypes": false,
    "editor.stickyScroll.enabled": true,
    "editor.stickyScroll.maxLineCount": 10,
    "editor.minimap.enabled": false,
    "namespaceResolver.sortAlphabetically": true,
    "workbench.editor.pinnedTabsOnSeparateRow": true,
    "window.density.editorTabHeight": "compact",
    "workbench.editor.doubleClickTabToToggleEditorGroupSizes": "maximize",
    "gitlens.hovers.currentLine.enabled": false,
    "git.confirmSync": false,
    "update.enableWindowsBackgroundUpdates": false,
    "update.mode": "manual",
    "workbench.editor.empty.hint": "hidden",
    "diffEditor.ignoreTrimWhitespace": false,
    "workbench.colorCustomizations": {
        "gitDecoration.modifiedResourceForeground":"#e6b61a"
    },
    "editor.smoothScrolling": true,
    "workbench.list.smoothScrolling": true,
    "terminal.integrated.smoothScrolling": true
 
}

Keyboard Shortcut

// Place your key bindings in this file to override the defaultsauto[]
[
    {
        "key": "ctrl+shift+d",
        "command": "-workbench.view.debug",
        "when": "viewContainer.workbench.view.debug.enabled"
    },
    {
        "key": "ctrl+shift+d",
        "command": "editor.action.duplicateSelection"
    },
    {
        "key": "ctrl+down",
        "command": "editor.action.moveLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "alt+down",
        "command": "-editor.action.moveLinesDownAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+up",
        "command": "editor.action.moveLinesUpAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "alt+up",
        "command": "-editor.action.moveLinesUpAction",
        "when": "editorTextFocus && !editorReadonly"
    },
    {
        "key": "ctrl+r",
        "command": "workbench.action.gotoSymbol"
    },
    {
        "key": "ctrl+shift+o",
        "command": "-workbench.action.gotoSymbol"
    },
    {
        "key":"ctrl+b",
        "scope":"html",
        "command":"editor.action.insertSnippet",
        "when":"editorTextFocus",
        "args":{
            "snippet":"<strong>$TM_SELECTED_TEXT</strong>$0"
        }
    },
    {
        "key":"ctrl+i",
        "scope":"html",
        "command":"editor.action.insertSnippet",
        "when":"editorTextFocus",
        "args":{
            "snippet":"<em>$TM_SELECTED_TEXT</em>$0"
        }
    },
    {
        "key": "ctrl+oem_7",
        "command": "workbench.action.toggleSidebarVisibility"
    },
    {
        "key": "ctrl+b",
        "command": "-workbench.action.toggleSidebarVisibility"
    },
    {
        "key": "ctrl+oem_5",
        "command": "workbench.files.action.showActiveFileInExplorer"
    }
]
 
 
-- parfois
 
    {
        "key": "ctrl+[Backslash]",
        "command": "workbench.files.action.showActiveFileInExplorer"
    },
    {
        "key": "ctrl+[Quote]",
        "command": "workbench.action.terminal.toggleTerminal"
    }

Mes extensions

Local

Remote

Problème

Sous linux, parfois un Ctrl+Z pour faire “Undo” exécute un Ctrl+W, ce qui ferme l’onglet. Pour corriger le problème →

use "keyboard.dispatch": "keyCode" in your settings and restart VS Code. This will prevent VS Code from trying to determine your keyboard layout whatsoever.

Si y’a un problème de droit sous windows sur les clés ssh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'id_rsa' are too open.
It is required that your private key files are NOT accessible by others.

Faire un clic droit sur votre fichier, propriété, Sécurité, Avancé, Désactiver l’héritage et choisir de tout supprimer.

Ajouter, rechercher son login et mettre contrôle total, valider