Skip to content

Instantly share code, notes, and snippets.

@danielwrobert
Last active September 15, 2022 19:29
Show Gist options
  • Save danielwrobert/ca8858b06644aef9c5f5bc48380f8e57 to your computer and use it in GitHub Desktop.
Save danielwrobert/ca8858b06644aef9c5f5bc48380f8e57 to your computer and use it in GitHub Desktop.
My user settings and extensions for VS Code.
code --install-extension aaron-bond.better-comments
code --install-extension AndrsDC.base16-themes
code --install-extension andys8.jest-snippets
code --install-extension anteprimorac.html-end-tag-labels
code --install-extension bmewburn.vscode-intelephense-client
code --install-extension bradgashler.htmltagwrap
code --install-extension bradlc.vscode-tailwindcss
code --install-extension burkeholland.simple-react-snippets
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension claudiosanches.woocommerce
code --install-extension cmstead.js-codeformer
code --install-extension cmstead.jsrefactor
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension dbaeumer.vscode-eslint
code --install-extension donjayamanne.githistory
code --install-extension dracula-theme.theme-dracula
code --install-extension dsznajder.es7-react-js-snippets
code --install-extension eamodio.gitlens
code --install-extension EditorConfig.EditorConfig
code --install-extension eg2.vscode-npm-script
code --install-extension ericadamski.carbon-now-sh
code --install-extension esbenp.prettier-vscode
code --install-extension felixfbecker.php-intellisense
code --install-extension formulahendry.auto-rename-tag
code --install-extension johnpapa.vscode-peacock
code --install-extension jpoissonnier.vscode-styled-components
code --install-extension kleber-swf.ocean-dark-extended
code --install-extension mikestead.dotenv
code --install-extension morgan-codes.morgan-codes-vscode-theme
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-python.python
code --install-extension ms-python.vscode-pylance
code --install-extension ms-toolsai.jupyter
code --install-extension ms-toolsai.jupyter-keymap
code --install-extension ms-toolsai.jupyter-renderers
code --install-extension ms-vscode-remote.remote-containers
code --install-extension ms-vscode-remote.remote-ssh
code --install-extension ms-vscode-remote.remote-ssh-edit
code --install-extension ms-vscode.azure-account
code --install-extension neilbrayfield.php-docblocker
code --install-extension octref.vetur
code --install-extension rothecoder.spooky-scary-color-theme
code --install-extension sdras.vue-vscode-snippets
code --install-extension stylelint.vscode-stylelint
code --install-extension tungvn.wordpress-snippet
code --install-extension unifiedjs.vscode-mdx
code --install-extension valeryanm.vscode-phpsab
code --install-extension vscode-icons-team.vscode-icons
code --install-extension vscodevim.vim
code --install-extension wayou.vscode-todo-highlight
code --install-extension wix.vscode-import-cost
code --install-extension wordpresstoolbox.wordpress-toolbox
code --install-extension xdebug.php-debug
code --install-extension xdebug.php-pack
code --install-extension zobo.php-intellisense
{
"editor.fontSize": 14,
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"editor.detectIndentation": false,
"editor.insertSpaces": false,
"editor.bracketPairColorization.enabled": true,
// Auto-save configs
"editor.formatOnSave": true,
"[markdown]": {
"editor.formatOnSave": false
},
"eslint.alwaysShowStatus": true,
"extensions.autoUpdate": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
// Adjusts the integrated terminal font size
// More settings here https://code.visualstudio.com/docs/editor/integrated-terminal
"terminal.integrated.fontSize": 14,
// Vim integration settings
"vim.easymotion": true,
"vim.leader": ",",
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.handleKeys": {
"<C-d>": true
},
// Prettier settings
"prettier.requireConfig": true,
// PHPCS settings
"phpcs.standard": "WordPress",
// Carbon settings carbon.now.sh
"carbon.backgroundColor": "rgba(0,0,0,0)",
"carbon.theme": "dracula",
"carbon.dropShadow": true,
"carbon.windowControls": true,
"carbon.autoAdjustWidth": true,
"carbon.paddingVertical": 24,
"carbon.paddingHorizontal": 16,
"carbon.lineNumbers": true,
"carbon.fontFamily": "Hack",
"carbon.fontSize": 14,
"workbench.colorCustomizations": {
"statusBar.background": "#005f5f",
"statusBar.noFolderBackground": "#005f5f",
"statusBar.debuggingBackground": "#005f5f"
},
"workbench.editor.tabSizing": "shrink",
"workbench.editor.enablePreview": false,
"editor.lineNumbers": "relative",
"files.exclude": {
"**/.DS_Store": true,
"**/.git": true,
"**/node_modules": true
},
"search.exclude": {
"**/.git": true,
"**/node_modules": true,
"**/bower_components": true,
"**/tmp": true
},
"workbench.colorTheme": "Dracula",
"peacock.favoriteColors": [
{
"name": "Angular Red",
"value": "#b52e31"
},
{
"name": "Auth0 Orange",
"value": "#eb5424"
},
{
"name": "Azure Blue",
"value": "#007fff"
},
{
"name": "C# Purple",
"value": "#68217A"
},
{
"name": "Calypso Blue",
"value": "#135e96"
},
{
"name": "Gatsby Purple",
"value": "#639"
},
{
"name": "Gutenberg Yellow",
"value": "#f5e6b3"
},
{
"name": "Go Cyan",
"value": "#5dc9e2"
},
{
"name": "Java Blue-Gray",
"value": "#557c9b"
},
{
"name": "JavaScript Yellow",
"value": "#f9e64f"
},
{
"name": "Mandalorian Blue",
"value": "#1857a4"
},
{
"name": "Node Green",
"value": "#215732"
},
{
"name": "React Blue",
"value": "#00b3e6"
},
{
"name": "Something Different",
"value": "#832561"
},
{
"name": "Vue Green",
"value": "#42b883"
}
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontFamily": "JetBrains Mono, Menlo, Monaco, 'Courier New', monospace",
"terminal.external.osxExec": "iTerm.app",
"workbench.startupEditor": "welcomePage",
"todohighlight.isEnable": true,
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"intelephense.format.enable": false,
"intelephense.format.braces": "k&r",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"phpcs.executablePath": "/Users/danielrobert/.composer/vendor/bin/phpcs",
"settingsSync.ignoredSettings": [
"-php.validate.executablePath"
],
"editor.unicodeHighlight.ambiguousCharacters": false,
"workbench.iconTheme": "vscode-icons",
"prettier.useTabs": true,
"npm.keybindingsChangedWarningShown": true,
"stylelint.validate": [
"css",
"less",
"postcss",
"scss"
],
"stylelint.snippet": [
"css",
"less",
"postcss",
"scss"
],
"intelephense.files.associations": [
"*.php",
"*.phtml"
],
"php.suggest.basic": false,
"intelephense.stubs": [
"apache",
"bcmath",
"bz2",
"calendar",
"com_dotnet",
"Core",
"ctype",
"curl",
"date",
"dba",
"dom",
"enchant",
"exif",
"FFI",
"fileinfo",
"filter",
"fpm",
"ftp",
"gd",
"gettext",
"gmp",
"hash",
"iconv",
"imap",
"intl",
"json",
"ldap",
"libxml",
"mbstring",
"meta",
"mysqli",
"oci8",
"odbc",
"openssl",
"pcntl",
"pcre",
"PDO",
"pdo_ibm",
"pdo_mysql",
"pdo_pgsql",
"pdo_sqlite",
"pgsql",
"Phar",
"posix",
"pspell",
"readline",
"Reflection",
"session",
"shmop",
"SimpleXML",
"snmp",
"soap",
"sockets",
"sodium",
"SPL",
"sqlite3",
"standard",
"superglobals",
"sysvmsg",
"sysvsem",
"sysvshm",
"tidy",
"tokenizer",
"xml",
"xmlreader",
"xmlrpc",
"xmlwriter",
"xsl",
"Zend OPcache",
"zip",
"zlib",
"wordpress"
],
}
@danielwrobert
Copy link
Author

danielwrobert commented Sep 15, 2022

Note: When using the PHP Intelephense plugin, be sure to disable the “PHP > Suggest: Basic” setting, since this extension replaces that.

Be sure to include "wordpress" in the "intelephense.stubs" setting array, if not already present.

It may also be worth disabling the native VS Code PHP language features, as noted in the plugin's instructions.

Disable the built-in VSCode PHP Language Features.

Go to Extensions.
Search for @builtin php
Disable PHP Language Features. Leave PHP Language Basics enabled for syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment