Skip to content

Instantly share code, notes, and snippets.

@lmeurs
Last active April 27, 2019 12:45
Show Gist options
  • Save lmeurs/fad8eb488d01f87f66fff3e4e672c28e to your computer and use it in GitHub Desktop.
Save lmeurs/fad8eb488d01f87f66fff3e4e672c28e to your computer and use it in GitHub Desktop.
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-04-27T12:45:30.276Z","extensionVersion":"v3.2.9"}
[
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.2.9"
},
{
"metadata": {
"id": "2090f9bc-9720-4fd0-b29c-7cb83987bd3d",
"publisherId": "kkapsner.duplicateselection",
"publisherDisplayName": "kkapsner"
},
"name": "duplicateselection",
"publisher": "kkapsner",
"version": "1.0.1"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "9.6.3"
},
{
"metadata": {
"id": "044b4b31-2969-4af3-895d-855433b8b46d",
"publisherId": "felixfbecker.php-debug",
"publisherDisplayName": "felixfbecker"
},
"name": "php-debug",
"publisher": "felixfbecker",
"version": "1.13.0"
},
{
"metadata": {
"id": "b0a47156-9132-49a2-bebd-ed16d91b1fa6",
"publisherId": "ikappas.phpcs",
"publisherDisplayName": "ikappas"
},
"name": "phpcs",
"publisher": "ikappas",
"version": "1.0.5"
},
{
"metadata": {
"id": "d6ba4b7b-539f-456a-b0f6-0348df44cdf3",
"publisherId": "nikitaKunevich.snippet-creator",
"publisherDisplayName": "nikitaKunevich"
},
"name": "snippet-creator",
"publisher": "nikitaKunevich",
"version": "0.0.5"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "PeterJausovec.vscode-docker",
"publisherDisplayName": "PeterJausovec"
},
"name": "vscode-docker",
"publisher": "PeterJausovec",
"version": "0.6.1"
},
{
"metadata": {
"id": "d637104e-1fd7-4063-98fc-8afe46012c9b",
"publisherId": "sleistner.vscode-fileutils",
"publisherDisplayName": "sleistner"
},
"name": "vscode-fileutils",
"publisher": "sleistner",
"version": "2.13.7"
},
{
"metadata": {
"id": "ffda6552-0ad5-431b-a4fa-0905a7e4f3f0",
"publisherId": "bmewburn.vscode-intelephense-client",
"publisherDisplayName": "bmewburn"
},
"name": "vscode-intelephense-client",
"publisher": "bmewburn",
"version": "1.0.13"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
// For extension duplicateselection
// @link https://marketplace.visualstudio.com/items?itemName=kkapsner.duplicateselection#overview
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly && !editorHasSelection"
},
{
"key": "ctrl+d",
"command": "duplicateselection.action.copySelectionForwardAction",
"when": "editorTextFocus && !editorReadonly && editorHasSelection"
},
{
"key": "ctrl+l",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
}
]
{
"window.openFilesInNewWindow": "on",
"files.autoSave": "afterDelay",
"editor.tabSize": 2,
// Show vertical ruler.
"editor.rulers": [80],
// Open files in new tabs, also when using CTRL + P
// @link: https://stackoverflow.com/q/38713405/328272
"workbench.editor.enablePreview": false,
// View diff's next to each other (opposed to inline)
"diffEditor.renderSideBySide": true,
// Default multi cursor shortcuts does not work on this Linux installation
"editor.multiCursorModifier": "ctrlCmd",
// Turn off default PHP code suggestions
"php.suggest.basic": false,
// "php.executablePath": "/usr/bin/php"
// PHP Code sniffer
"phpcs.executablePath": "/home/lmeurs/phpcs/vendor/bin/phpcs",
"phpcs.standard": "/home/lmeurs/phpcs/vendor/drupal/coder/coder_sniffer/Drupal",
// Open new tabs as last tab (opposed to e.g. at right of active tab)
"workbench.editor.openPositioning": "last",
"workbench.editor.highlightModifiedTabs": true,
"zenMode.hideTabs": false,
"explorer.openEditors.visible": 0,
// // Do not close empty editor groups
// "workbench.editor.closeEmptyGroups": false,
// Drupal file associations as provided by Drupal Syntax Highlighting
// extension, but need to be added manually for Intelephense to index
// all PHP files.
"files.associations": {
// INI
"*.info": "ini",
// PHP
"*.inc": "php",
"*.engine": "php",
"*.theme": "php",
"*.install": "php",
"*.make": "php",
"*.module": "php",
"*.profile": "php",
"*.test": "php",
},
"sync.gist": "fad8eb488d01f87f66fff3e4e672c28e",
"window.zoomLevel": -1,
// Increase indentation of directory tree.
"workbench.tree.indent": 20,
}
{
// Place your snippets for php here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Laurens' test snippet": {
"prefix": "lau",
"body": [
"nice! enter your name: \"$1\", if you'd like..."
],
"description": "Just another test"
}
}
{
"My test snippet": {
"prefix": "",
"body": [
"/**",
" * {@inheritdoc}",
" */",
" public function get_sort_name() {",
" return t('Numerical', array(), array('context' => 'Sort order'));",
" }"
],
"description": "plop"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment