Skip to content

Instantly share code, notes, and snippets.

@matthewadowns
Last active August 5, 2021 18:15
Show Gist options
  • Save matthewadowns/0846e71e7a77b69cc1397251ca52145b to your computer and use it in GitHub Desktop.
Save matthewadowns/0846e71e7a77b69cc1397251ca52145b to your computer and use it in GitHub Desktop.
VSCode configuration for PETAL stack with IntelliSense for TailwindCSS in Elixir templates
{
"auto-close-tag.activationOnLanguage": [
"blade",
"cfml",
"eex",
"ejs",
"erb",
"html-eex",
"javascript",
"javascriptreact",
"jinja",
"lang-cfml",
"liquid",
"markdown",
"php",
"plaintext",
"plist",
"typescript",
"typescriptreact",
"vue",
"xml"
],
"bracketPairColorizer.showVerticalScopeLine": true,
"css.styleSheets": ["https://unpkg.com/tailwindcss@2.1.1/dist/tailwind.css"],
"css.enabledLanguages": ["html", "html-eex", "elixir", "css", "sass"],
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"tailwindCSS.validate": true,
"editor.codeActionsOnSave": {
"source.organizeImports": false,
"source.fixAll": false,
"source.fixAll.eslint": false,
"source.fixAll.stylelint": false,
"updateImportsOnFileMove.enabled": true
},
"editor.formatOnSave": true,
"editor.linkedEditing": true,
"editor.minimap.enabled": false,
"editor.quickSuggestions": {
"strings": true
},
"editor.renderControlCharacters": true,
"editor.renderWhitespace": "all",
"editor.rulers": [80, 100, 120],
"editor.snippetSuggestions": "top",
"editor.stickyTabStops": true,
"editor.suggestSelection": "first",
"editor.tabSize": 2,
"elixirLS.fetchDeps": false,
"elixirLS.suggestSpecs": true,
"elixirLS.dialyzerEnabled": true,
"emmet.includeLanguages": {
"elixir": "html",
"html-eex": "html",
"javascript": "javascriptreact"
},
"emmet.triggerExpansionOnTab": true,
"emmet.preferences": {
"format.forceIndentationForTags": ["body", "div"]
},
"eslint.alwaysShowStatus": true,
"eslint.format.enable": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"eslint.lintTask.enable": true,
"eslint.run": "onSave",
"highlight-matching-tag.highlightFromContent": true,
"highlight-matching-tag.highlightSelfClosing": true,
"files.associations": {
"*.html.leex": "html-eex",
"*.eex": "eex",
"*.leex": "eex"
},
"files.trimTrailingWhitespace": true,
"html-css-class-completion.HTMLLanguages": [
"html",
"html-eex",
"elixir",
"css",
"sass"
],
"openInGitHub.defaultBranch": "main",
"prettier.proseWrap": "always",
"security.workspace.trust.untrustedFiles": "open",
"tailwindCSS.emmetCompletions": true,
"tailwindCSS.includeLanguages": {
"elixir": "html",
"html-eex": "html"
},
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"window.zoomLevel": 1,
"workbench.colorTheme": "dark+(elixir)",
"workbench.iconTheme": "material-icon-theme",
"[elixir]": {
"editor.defaultFormatter": "JakeBecker.elixir-ls",
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.wordBasedSuggestions": false,
"editor.formatOnType": true,
"editor.trimAutoWhitespace": false,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[html-eex]": {
"editor.defaultFormatter": "RoyalMist.vscode-eex-format",
"editor.formatOnSave": true,
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.tabSize": 2
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[sass]": {
"editor.formatOnSave": false
},
"[svg]": {
"editor.defaultFormatter": "shtian.svgocd",
"editor.formatOnSave": true
},
"[xml]": {
"editor.defaultFormatter": "DotJoshJohnson.xml",
"editor.formatOnSave": true
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment