Skip to content

Instantly share code, notes, and snippets.

@larodiel
Last active February 25, 2020 05:50
Show Gist options
  • Save larodiel/b7092ffab2e21008e4b31af29ac05903 to your computer and use it in GitHub Desktop.
Save larodiel/b7092ffab2e21008e4b31af29ac05903 to your computer and use it in GitHub Desktop.
Visual Studio Code
{
/*
Plugins
- phpfmt - PHP formatter <https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt>
- phpcs - <https://marketplace.visualstudio.com/items?itemName=ikappas.phpcs>
- PHP IntelliSense - <https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense>
- PHP DocBlocker - <https://marketplace.visualstudio.com/items?itemName=neilbrayfield.php-docblocker>
- Sass - <https://marketplace.visualstudio.com/items?itemName=Syler.sass-indented>
- SCSS IntelliSense <https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-scss>
- SCSS Everywhere <https://marketplace.visualstudio.com/items?itemName=gencer.html-slim-scss-css-class-completion>
- CSScomb <https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-csscomb>
- indent-rainbow <https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow>
- Bracket Pair Colorizer <https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer>
- Beautify <https://marketplace.visualstudio.com/items?itemName=HookyQR.beautify>
- Better Align <https://marketplace.visualstudio.com/items?itemName=wwm.better-align>
- ACF-Snippet <https://marketplace.visualstudio.com/items?itemName=anthonydiametrix.ACF-Snippet>
- Icon Fonts <https://marketplace.visualstudio.com/items?itemName=idleberg.icon-fonts>
After past the settings on VSC remove all comments from JSON.
*/
"editor.tabSize": 2,
"editor.wordWrap": "on",
"terminal.integrated.fontFamily": "Menlo for Powerline, Monaco, 'Courier New', monospace",
"editor.fontFamily": "Menlo for Powerline, Monaco, 'Courier New', monospace",
"workbench.editor.enablePreviewFromQuickOpen": false,
"workbench.editor.showTabs": true,
"workbench.startupEditor": "none",
"window.openFilesInNewWindow": "off",
"window.zoomLevel": 0,
"window.restoreFullscreen": true,
"editor.snippetSuggestions": "top",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/.sass-cache": true,
"**/.vscode": true
},
"git.confirmSync": false,
"git.ignoreMissingGitWarning": true,
"git.enableSmartCommit": true,
"liquid.format": true,
"task.autoDetect": "off",
"rest-client.fontSize": 12,
/* PHP */
"php.validate.enable": true,
"php.validate.executablePath": "PATH_TO_YOUR_PHP",
"php.executablePath": "PATH_TO_YOUR_PHP",
"[php]": {
"editor.defaultFormatter": "Sophisticode.php-formatter"
},
/* PHP Formatter */
"phpformatter.phpPath": "PATH_TO_YOUR_PHP",
"phpformatter.composer": true,
"phpfmt.indent_with_space": 2,
/* PHP Code Sniffer */
"phpcs.enable": true,
"phpcs.executablePath": "PATH_TO_COMPOSER_PHPCS",
"phpcs.standard": "PATH_TO/cd-phpcs.xml",
"phpcs.showSources": true,
/* PHP Mess Detector */
"phpmd.rules": "PATH_TO/cd-phpmd.xml",
"phpmd.clearOnClose": true,
/* HTML Config */
"html.suggest.html5": true,
"html.autoClosingTags": true,
"html.validate.scripts": true,
"html.validate.styles": true,
/* Emmet */
"emmet.triggerExpansionOnTab": true,
"emmet.includeLanguages": {
"javascript": "html",
"php": "html"
},
/* JavaScript */
"javascript.validate.enable": true,
/* CSS */
"css.validate": true,
"css.lint.duplicateProperties": "error",
"css.lint.emptyRules": "error",
"css.lint.float": "warning",
"css.lint.fontFaceProperties": "error",
"css.lint.hexColorLength": "error",
"css.lint.universalSelector": "warning",
"css.lint.ieHack": "warning",
"scss.validate": true,
"scss.lint.duplicateProperties": "error",
"scss.lint.emptyRules": "error",
"scss.lint.float": "warning",
"scss.lint.fontFaceProperties": "error",
"scss.lint.hexColorLength": "error",
"scss.lint.universalSelector": "warning",
"scss.lint.ieHack": "warning",
"less.validate": true,
"less.lint.duplicateProperties": "error",
"less.lint.emptyRules": "error",
"less.lint.float": "warning",
"less.lint.fontFaceProperties": "error",
"less.lint.hexColorLength": "error",
"less.lint.universalSelector": "warning",
"less.lint.ieHack": "warning",
/* Beautifier */
"beautify.language": {
"js": {
"type": [
"javascript",
"json",
"jsonc"
],
"filename": [
".jshintrc",
".jsbeautifyrc"
]
},
"css": [
"css",
"scss",
"less"
],
"html": [
"htm",
"html",
"php"
]
},
/* CSS Comb */
"csscomb.preset": "PATH_TO/csscomb.json",
"csscomb.formatOnSave": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment