Created
December 9, 2024 09:44
-
-
Save mustafaslk/f08f95b4b07ca2f8814d3976812b4c74 to your computer and use it in GitHub Desktop.
Optimized VSCode settings for web development with comprehensive configurations for PHP (WordPress standards), JavaScript/TypeScript, HTML/CSS. Includes code formatting, linting, Git integration, and enhanced editor features for improved productivity.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "editor.guides.bracketPairs": "active", | |
| "editor.bracketPairColorization.enabled": true, | |
| "editor.suggestSelection": "first", | |
| "editor.wordWrap": "on", | |
| "editor.linkedEditing": true, | |
| "editor.tokenColorCustomizations": { | |
| "textMateRules": [ | |
| { | |
| "scope": [ | |
| "comment" | |
| ], | |
| "settings": { | |
| "fontStyle": "italic" | |
| } | |
| } | |
| ] | |
| }, | |
| "editor.quickSuggestions": { | |
| "strings": "on" | |
| }, | |
| "editor.accessibilitySupport": "off", | |
| "editor.inlineSuggest.enabled": true, | |
| "editor.inlayHints.enabled": "onUnlessPressed", | |
| "editor.codeLens": true, | |
| "editor.formatOnPaste": true, | |
| "editor.showFoldingControls": "always", | |
| "editor.codeActionsOnSave": { | |
| "source.organizeImports": "explicit" | |
| }, | |
| "editor.stickyScroll.enabled": true, | |
| "editor.formatOnType": true, | |
| "editor.formatOnSave": true, | |
| "editor.cursorBlinking": "phase", | |
| "editor.cursorWidth": 3, | |
| "editor.cursorSmoothCaretAnimation": "on", | |
| "files.insertFinalNewline": true, | |
| "files.trimFinalNewlines": true, | |
| "files.trimTrailingWhitespace": true, | |
| "files.associations": { | |
| "*.css": "css" | |
| }, | |
| "[javascriptreact]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[javascript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.tabSize": 2 | |
| }, | |
| "javascript.suggest.paths": false, | |
| "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true, | |
| "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, | |
| "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true, | |
| "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true, | |
| "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true, | |
| "javascript.format.semicolons": "insert", | |
| "javascript.inlayHints.propertyDeclarationTypes.enabled": true, | |
| "javascript.inlayHints.enumMemberValues.enabled": true, | |
| "javascript.referencesCodeLens.enabled": true, | |
| "javascript.referencesCodeLens.showOnAllFunctions": true, | |
| "typescript.suggest.paths": false, | |
| "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true, | |
| "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": true, | |
| "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true, | |
| "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true, | |
| "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true, | |
| "typescript.format.semicolons": "insert", | |
| "typescript.inlayHints.parameterNames.enabled": "all", | |
| "typescript.inlayHints.variableTypes.enabled": true, | |
| "typescript.inlayHints.propertyDeclarationTypes.enabled": true, | |
| "typescript.inlayHints.parameterTypes.enabled": true, | |
| "typescript.inlayHints.functionLikeReturnTypes.enabled": true, | |
| "typescript.referencesCodeLens.enabled": true, | |
| "typescript.implementationsCodeLens.enabled": true, | |
| "[html]": { | |
| "editor.tabSize": 2, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "html.format.indentInnerHtml": true, | |
| "html.format.templating": true, | |
| "[css]": { | |
| "editor.tabSize": 2, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "css.format.spaceAroundSelectorSeparator": true, | |
| "css.lint.compatibleVendorPrefixes": "warning", | |
| "css.lint.zeroUnits": "warning", | |
| "[json]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.tabSize": 2 | |
| }, | |
| "[jsonc]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "editor.tabSize": 2 | |
| }, | |
| "editor.defaultFormatter": "esbenp.prettier-vscode", | |
| "[typescript]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[typescriptreact]": { | |
| "editor.defaultFormatter": "esbenp.prettier-vscode" | |
| }, | |
| "[php]": { | |
| "editor.tabSize": 4, | |
| "editor.defaultFormatter": "persoderlind.vscode-phpcbf" | |
| }, | |
| "phpcs.enable": true, | |
| "phpcs.executablePath": "/Users/mustafa/.composer/vendor/bin/phpcs", | |
| "phpcs.standard": "WordPress", | |
| "phpcs.showWarnings": true, | |
| "phpcs.lintOnOpen": true, | |
| "phpcs.lintOnType": true, | |
| "phpcs.lintOnSave": true, | |
| "phpcbf.enable": true, | |
| "phpcbf.executablePath": "/Users/mustafa/.composer/vendor/bin/phpcbf", | |
| "phpcbf.documentFormattingProvider": true, | |
| "phpcbf.standard": "WordPress", | |
| "phpcs.showSources": true, | |
| "phpcbf.onsave": true, | |
| "workbench.iconTheme": "vscode-icons", | |
| "vsicons.dontShowNewVersionMessage": true, | |
| "typescript.updateImportsOnFileMove.enabled": "always", | |
| "gitlens.ai.model": "github:gpt-4o", | |
| "gitlens.ai.generateCommitMessage.customInstructions": "Generate a concise git commit message that summarizes the key changes. Stay high-level and combine smaller changes to overarching topics. Skip describing any reformatting changes. commit messages should: - follow conventional commits - message format should be: <type>[scope]: <description> examples: - fix(authentication): add password regex pattern - feat(storage): add new test cases", | |
| "git.autofetch": true, | |
| "git.enableSmartCommit": true, | |
| "git.confirmSync": false | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
VSCode Settings for Web Development
A carefully curated VSCode
settings.jsonconfiguration optimized for web development, with special focus on PHP/WordPress, JavaScript/TypeScript, and frontend technologies.Key Features
Editor Enhancements
Language-Specific Configurations
PHP/WordPress
JavaScript/TypeScript
HTML/CSS
Git Integration
Installation
settings.jsonto your VSCode user settingsRequired Extensions
esbenp.prettier-vscodepersoderlind.vscode-phpcbfvscode-iconsgitlensPrerequisites
phpcsandphpcbf) installed globally via ComposerNotes