====== 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":"$TM_SELECTED_TEXT$0"
}
},
{
"key":"ctrl+i",
"scope":"html",
"command":"editor.action.insertSnippet",
"when":"editorTextFocus",
"args":{
"snippet":"$TM_SELECTED_TEXT$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 ====
* Bearded Theme
* DotENV
* Laravel Snippets
* Remote - SSH
* Remote - SSH: Editing Configuration Files
* Remote Explorer
==== Remote ====
* Better Align
* EditorConfig for VS Code
* Git Graph
* Laravel Artisan
* Laravel Blade formatter
* Laravel Blade Snippets
* Laravel Blade Wrapper
* Laravel Create View
* Laravel Extension Pack
* Laravel goto view
* laravel-goto-components
* laravel-jump-controller
* PHP Intelephense (ben mewburn)
* PHP IntelliSense
* PHP Namespace Resolver
* PHP (DEVSENSE) All-in-One PHP support IntelliSense, Debug, Formatter, Code Lenses, Code Fixes, Linting, Refactoring, PHPUnit Tests, Web Server, and more.
===== 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 ->
* https://github.com/Microsoft/vscode/wiki/Keybinding-Issues#troubleshoot-linux-keybindings
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