Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Visual Studio Code Settings
{"lastUpload":"2019-08-22T18:39:00.396Z","extensionVersion":"v3.2.9"}
[
{
"metadata": {
"id": "a6a0c5b2-d078-4bf5-a9ee-4e37054414b3",
"publisherId": "formulahendry.code-runner",
"publisherDisplayName": "formulahendry"
},
"name": "code-runner",
"publisher": "formulahendry",
"version": "0.9.10"
},
{
"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": "b0ac00c8-dedf-4e34-92e0-c0b511a86038",
"publisherId": "Codelines.codelines",
"publisherDisplayName": "Codelines"
},
"name": "codelines",
"publisher": "Codelines",
"version": "1.0.1"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "3.8.1"
},
{
"metadata": {
"id": "dff6b801-247e-40e9-82e8-8c9b1d19d1b8",
"publisherId": "christian-kohler.npm-intellisense",
"publisherDisplayName": "christian-kohler"
},
"name": "npm-intellisense",
"publisher": "christian-kohler",
"version": "1.3.0"
},
{
"metadata": {
"id": "044b4b31-2969-4af3-895d-855433b8b46d",
"publisherId": "felixfbecker.php-debug",
"publisherDisplayName": "felixfbecker"
},
"name": "php-debug",
"publisher": "felixfbecker",
"version": "1.13.0"
},
{
"metadata": {
"id": "ca0094fa-0dc7-4847-ae5d-879442c099ca",
"publisherId": "neilbrayfield.php-docblocker",
"publisherDisplayName": "neilbrayfield"
},
"name": "php-docblocker",
"publisher": "neilbrayfield",
"version": "2.0.1"
},
{
"metadata": {
"id": "651dce1f-eda8-4a5b-aa26-0d1266de8ed1",
"publisherId": "MehediDracula.php-namespace-resolver",
"publisherDisplayName": "MehediDracula"
},
"name": "php-namespace-resolver",
"publisher": "MehediDracula",
"version": "1.1.8"
},
{
"metadata": {
"id": "b0a47156-9132-49a2-bebd-ed16d91b1fa6",
"publisherId": "ikappas.phpcs",
"publisherDisplayName": "ikappas"
},
"name": "phpcs",
"publisher": "ikappas",
"version": "1.0.5"
},
{
"metadata": {
"id": "74087f8d-b363-4d25-874a-70d700eb42a8",
"publisherId": "eamodio.restore-editors",
"publisherDisplayName": "eamodio"
},
"name": "restore-editors",
"publisher": "eamodio",
"version": "0.2.1"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "1.9.0"
},
{
"metadata": {
"id": "ffda6552-0ad5-431b-a4fa-0905a7e4f3f0",
"publisherId": "bmewburn.vscode-intelephense-client",
"publisherDisplayName": "bmewburn"
},
"name": "vscode-intelephense-client",
"publisher": "bmewburn",
"version": "1.2.1"
},
{
"metadata": {
"id": "6fc9fa34-b8b2-4071-9a0d-3eeb81cd9cfb",
"publisherId": "fknop.vscode-npm",
"publisherDisplayName": "fknop"
},
"name": "vscode-npm",
"publisher": "fknop",
"version": "3.3.0"
},
{
"metadata": {
"id": "3228ecba-4596-42ab-ba6d-8e08ad2a8646",
"publisherId": "valeryanm.vscode-phpcbf",
"publisherDisplayName": "valeryanm"
},
"name": "vscode-phpcbf",
"publisher": "valeryanm",
"version": "1.1.6"
},
{
"metadata": {
"id": "68766e38-1f07-4a9f-9716-ce0d08ff7ecc",
"publisherId": "fabiospampinato.vscode-statusbar-debugger",
"publisherDisplayName": "fabiospampinato"
},
"name": "vscode-statusbar-debugger",
"publisher": "fabiospampinato",
"version": "2.0.6"
},
{
"metadata": {
"id": "5a6dc0d5-dc02-4121-8e24-cad33a2ff0af",
"publisherId": "ms-vsliveshare.vsliveshare",
"publisherDisplayName": "ms-vsliveshare"
},
"name": "vsliveshare",
"publisher": "ms-vsliveshare",
"version": "1.0.721"
},
{
"metadata": {
"id": "f38fdd1c-7ee2-47b1-90b9-77ecc90d4bff",
"publisherId": "ms-vsliveshare.vsliveshare-audio",
"publisherDisplayName": "ms-vsliveshare"
},
"name": "vsliveshare-audio",
"publisher": "ms-vsliveshare",
"version": "0.1.64"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "cmd+t",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "cmd+t",
"command": "editor.action.insertSnippet"
},
{
"key": "cmd+backspace",
"command": "-deleteAllLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+backspace",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "cmd+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+down",
"command": "-editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+left",
"command": "workbench.action.navigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack"
},
{
"key": "ctrl+shift+right",
"command": "workbench.action.navigateForward"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward"
},
{
"key": "alt+cmd+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+a",
"command": "-editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+a",
"command": "git.stageSelectedRanges"
},
{
"key": "shift+cmd+r",
"command": "git.unstageSelectedRanges"
},
{
"key": "cmd+r",
"command": "workbench.action.openRecent"
},
{
"key": "ctrl+r",
"command": "-workbench.action.openRecent"
},
{
"key": "f11",
"command": "-extension.node-debug.startWithStopOnEntry",
"when": "!inDebugMode && debugConfigurationType == 'node'"
},
{
"key": "f6",
"command": "-workbench.action.debug.pause",
"when": "inDebugMode"
},
{
"key": "f6",
"command": "workbench.action.debug.stop",
"when": "inDebugMode"
},
{
"key": "shift+f5",
"command": "-workbench.action.debug.stop",
"when": "inDebugMode"
},
{
"key": "f7",
"command": "workbench.action.debug.stepInto",
"when": "inDebugMode"
},
{
"key": "f11",
"command": "-workbench.action.debug.stepInto",
"when": "inDebugMode"
},
{
"key": "f8",
"command": "workbench.action.debug.stepOver",
"when": "inDebugMode"
},
{
"key": "f10",
"command": "-workbench.action.debug.stepOver",
"when": "inDebugMode"
},
{
"key": "shift+cmd+b",
"command": "-workbench.action.tasks.build"
},
{
"key": "shift+cmd+b",
"command": "editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus"
},
{
"key": "f9",
"command": "-editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus"
},
{
"key": "shift+f7",
"command": "workbench.action.debug.stepOut",
"when": "inDebugMode"
},
{
"key": "shift+f11",
"command": "-workbench.action.debug.stepOut",
"when": "inDebugMode"
},
{
"key": "f9",
"command": "workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "f5",
"command": "-workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"key": "f10",
"command": "-extension.node-debug.startWithStopOnEntry",
"when": "!inDebugMode && debugConfigurationType == 'node'"
},
{
"key": "shift+cmd+e",
"command": "workbench.view.explorer"
},
{
"key": "shift+cmd+e",
"command": "-workbench.view.explorer"
},
{
"key": "shift+cmd+g",
"command": "workbench.view.scm"
},
{
"key": "ctrl+shift+g",
"command": "-workbench.view.scm"
},
{
"key": "shift+cmd+x",
"command": "workbench.view.extensions"
},
{
"key": "shift+cmd+x",
"command": "-workbench.view.extensions"
},
{
"key": "shift+cmd+d",
"command": "workbench.view.debug"
},
{
"key": "shift+cmd+d",
"command": "-workbench.view.debug"
},
{
"key": "shift+cmd+g",
"command": "-editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPreviousTerminalFocus",
"when": "terminalFocus"
},
{
"key": "shift+cmd+g",
"command": "-workbench.action.terminal.findPrevious",
"when": "terminalFindWidgetFocused"
},
{
"key": "cmd+escape",
"command": "workbench.action.maximizeEditor"
},
{
"key": "alt+s",
"command": "workbench.action.showAllSymbols"
},
{
"key": "cmd+l",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "shift+cmd+w",
"command": "-workbench.action.closeWindow"
},
{
"key": "shift+cmd+w",
"command": "workbench.action.closeFolder"
},
{
"key": "cmd+k f",
"command": "-workbench.action.closeFolder"
},
{
"key": "cmd+.",
"command": "-problems.action.showQuickFixes",
"when": "problemFocus"
},
{
"key": "cmd+.",
"command": "-settings.action.editFocusedSetting",
"when": "inSettingsSearch"
},
{
"key": "cmd+.",
"command": "-editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+.",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+`",
"command": "-workbench.action.terminal.toggleTerminal"
}
]
{
"debug.internalConsoleOptions": "neverOpen",
"debug.toolBarLocation": "docked",
"editor.detectIndentation": false,
"editor.insertSpaces": false,
"editor.fontSize": 13,
"editor.formatOnSaveTimeout": 3000,
"editor.tokenColorCustomizations": {
"comments": "#999999"
},
"eslint.alwaysShowStatus": true,
"eslint.packageManager": "npm",
"files.autoSave": "onFocusChange",
"files.exclude": {
"**/.idea": true
},
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"launch": {
"configurations": [
{
"name": "Local by Flywheel",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/app/public": "${workspaceFolder}",
}
},
{
"name": "Built-in PHP Server",
"type": "php",
"request": "launch",
"port": 9000
}
],
},
"material-icon-theme.hidesExplorerArrows": true,
"material-icon-theme.languages.associations": {
"php": "php_elephant"
},
"php.suggest.basic": false,
"phpcbf.composerJsonPath": "/Users/wpscholar/.composer/composer.json",
"phpcbf.executablePath": "/Users/wpscholar/.composer/vendor/bin/phpcbf",
"phpcbf.standard": "WPScholar",
"phpcs.composerJsonPath": "/Users/wpscholar/.composer/composer.json",
"phpcs.executablePath": "/Users/wpscholar/.composer/vendor/bin/phpcs",
"phpcs.standard": "WPScholar",
"sync.autoUpload": true,
"sync.gist": "8515a53e28f408a489376b014ecf3be6",
"sync.quietSync": true,
"sync.removeExtensions": false,
"window.nativeFullScreen": false,
"window.zoomLevel": 1,
"workbench.colorTheme": "Default Light+",
"workbench.editor.highlightModifiedTabs": true,
"workbench.iconTheme": "material-icon-theme",
"[php]": {
"editor.defaultFormatter": "ValeryanM.vscode-phpcbf"
},
"phpcs.enable": false
}
{
// See: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax
"PHP_public_function": {
"scope": "php",
"prefix": "pubf",
"body": [
"public function $1 ( $2 ) {",
"",
" $0",
"",
"}",
],
"description": "Add a public PHP function."
},
"PHP_class": {
"scope": "php",
"prefix": "phpclass",
"body": [
"/**",
" * ${TM_FILENAME/\\.php//}",
" *",
" * @package $1",
" */",
"class ${TM_FILENAME/\\.php//} $2{",
"",
" $0",
"",
"}",
],
"description": "Add a PHP class."
},
"PHP_file_doc_comment": {
"scope": "php",
"prefix": "filedoc",
"body": [
"/**",
" * $1",
" *",
" * @package $2",
" */",
"",
"$0",
],
"description": "Add a PHP file doc comment."
},
"WP_html_e": {
"scope": "html",
"prefix": "_e",
"body": "<?php esc_html_e( '${TM_SELECTED_TEXT}', '${1:text-domain}' ); ?>",
"description": "Translate and escape a text string in WordPress"
},
"WP_php_esc_html": {
"scope": "php",
"prefix": "esc_html",
"body": "esc_html_e( '${1:text}', '${2:text-domain}' ); ?>",
"description": "Translate and escape a text string in WordPress"
},
"WP_plugin_headers": {
"scope": "php",
"prefix": "pluginheaders",
"body": [
"/*",
" * Plugin Name: $1",
" * Plugin URI: $2",
" * Description: $3",
" * Version: ${4:1.0}",
" * Author: ${5:Micah Wood}",
" * Author URI: ${6:https://wpscholar.com}",
" * License: GPL2",
" * License URI: https://www.gnu.org/licenses/gpl-2.0.html",
" * Text Domain: ${7:${TM_DIRECTORY/(.*?)([^\\/]*)$/$2/}}",
" * Domain Path: /languages",
" */",
"",
"$0",
],
"description": "Add WordPress plugin headers"
}
}
@wpscholar

This comment has been minimized.

Copy link
Owner Author

commented May 16, 2019

Setup VS Code:

Setup Debugging:

Setup WordPress PHP Coding Standards:

  • Install Composer (https://getcomposer.org/)
  • If necessary, add the global composer vendor directory to your PATH ( for Mac/Linux) by running
    echo 'export PATH="$PATH:$HOME/.composer/vendor/bin"' >> ~/.bashrc.
  • Install WP Coding Standards (run composer global require wpscholar/phpcs-standards-wpscholar)

Setup WordPress JS Coding Standards:

  • Install Node (https://nodejs.org/en/download/)
  • Run npm install -g eslint-config-wordpess
  • Add a .eslintrc.json file in your global user folder. Should contain {"extends": "wordpress"}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.