Skip to content

Instantly share code, notes, and snippets.

@alaadahmed
Last active September 25, 2021 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alaadahmed/6cd19b0b6957d109c00c023126465766 to your computer and use it in GitHub Desktop.
Save alaadahmed/6cd19b0b6957d109c00c023126465766 to your computer and use it in GitHub Desktop.
vscode settings and extensions
{"lastUpload":"2021-09-25T22:24:50.680Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "cff100b7-37b6-4c79-ad06-129972cda397",
"publisherId": "janjoerke.align-by-regex",
"publisherDisplayName": "janjoerke"
},
"name": "align-by-regex",
"publisher": "janjoerke",
"version": "1.0.4"
},
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.1.8"
},
{
"metadata": {
"id": "697255a9-3f36-44c8-b084-d3b91edfb23a",
"publisherId": "HookyQR.beautify",
"publisherDisplayName": "HookyQR"
},
"name": "beautify",
"publisher": "HookyQR",
"version": "1.5.0"
},
{
"metadata": {
"id": "f583eafd-aa0d-4ccb-8f44-d1e610389660",
"publisherId": "CoenraadS.bracket-pair-colorizer",
"publisherDisplayName": "CoenraadS"
},
"name": "bracket-pair-colorizer",
"publisher": "CoenraadS",
"version": "1.0.61"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "532533c9-a894-4a58-9eee-bbfbe7c06f71",
"publisherId": "mikestead.dotenv",
"publisherDisplayName": "mikestead"
},
"name": "dotenv",
"publisher": "mikestead",
"version": "1.0.1"
},
{
"metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "EditorConfig.EditorConfig",
"publisherDisplayName": "EditorConfig"
},
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.16.4"
},
{
"metadata": {
"id": "bc64531a-9b98-46f5-8ef9-88334d02cd60",
"publisherId": "JakeBecker.elixir-ls",
"publisherDisplayName": "JakeBecker"
},
"name": "elixir-ls",
"publisher": "JakeBecker",
"version": "0.8.1"
},
{
"metadata": {
"id": "e9a05054-5cce-41cd-a15c-6d71e99ebab1",
"publisherId": "kaiwood.endwise",
"publisherDisplayName": "kaiwood"
},
"name": "endwise",
"publisher": "kaiwood",
"version": "1.5.1"
},
{
"metadata": {
"id": "db50f65a-6c7c-4134-8e8d-e6b8a9c738da",
"publisherId": "Tobermory.es6-string-html",
"publisherDisplayName": "Tobermory"
},
"name": "es6-string-html",
"publisher": "Tobermory",
"version": "2.10.0"
},
{
"metadata": {
"id": "19804510-b475-4dae-b0f7-6ca08fd1af0c",
"publisherId": "dsznajder.es7-react-js-snippets",
"publisherDisplayName": "dsznajder"
},
"name": "es7-react-js-snippets",
"publisher": "dsznajder",
"version": "3.1.1"
},
{
"metadata": {
"id": "6226e0be-5975-4616-948c-545d562adc1d",
"publisherId": "heybourn.headwind",
"publisherDisplayName": "heybourn"
},
"name": "headwind",
"publisher": "heybourn",
"version": "1.7.0"
},
{
"metadata": {
"id": "68464f0b-8ce5-408e-bed6-4c13209b254a",
"publisherId": "mrorz.language-gettext",
"publisherDisplayName": "mrorz"
},
"name": "language-gettext",
"publisher": "mrorz",
"version": "0.2.0"
},
{
"metadata": {
"id": "b63c44fd-0457-4696-99e9-dbfdf70d77de",
"publisherId": "ritwickdey.LiveServer",
"publisherDisplayName": "ritwickdey"
},
"name": "LiveServer",
"publisher": "ritwickdey",
"version": "5.6.1"
},
{
"metadata": {
"id": "113b22c8-8125-42ec-8c6b-80c3f5d5fa5f",
"publisherId": "IBM.output-colorizer",
"publisherDisplayName": "IBM"
},
"name": "output-colorizer",
"publisher": "IBM",
"version": "0.1.2"
},
{
"metadata": {
"id": "47b95e0f-414f-4fee-b6e4-840444ddd9c0",
"publisherId": "phoenixframework.phoenix",
"publisherDisplayName": "phoenixframework"
},
"name": "phoenix",
"publisher": "phoenixframework",
"version": "0.1.0"
},
{
"metadata": {
"id": "7ebc60c0-0f2b-496e-8d82-0f7f474fa4dd",
"publisherId": "svipas.prettier-plus",
"publisherDisplayName": "svipas"
},
"name": "prettier-plus",
"publisher": "svipas",
"version": "4.2.2"
},
{
"metadata": {
"id": "3792588c-3d35-442d-91ea-fe6a755e8155",
"publisherId": "mechatroner.rainbow-csv",
"publisherDisplayName": "mechatroner"
},
"name": "rainbow-csv",
"publisher": "mechatroner",
"version": "1.9.1"
},
{
"metadata": {
"id": "93ce222b-5f6f-49b7-9ab1-a0463c6238df",
"publisherId": "ms-vscode-remote.remote-containers",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-containers",
"publisher": "ms-vscode-remote",
"version": "0.194.0"
},
{
"metadata": {
"id": "f23b142c-d9c8-4bce-b791-57315e8cf4f3",
"publisherId": "pucelle.run-on-save",
"publisherDisplayName": "pucelle"
},
"name": "run-on-save",
"publisher": "pucelle",
"version": "1.4.7"
},
{
"metadata": {
"id": "039ea345-b65c-4c09-a211-3c1322526307",
"publisherId": "msaraiva.surface",
"publisherDisplayName": "msaraiva"
},
"name": "surface",
"publisher": "msaraiva",
"version": "0.7.0"
},
{
"metadata": {
"id": "261cac81-cd7b-4555-bb41-0c2d2bcd3e70",
"publisherId": "Gruntfuggly.todo-tree",
"publisherDisplayName": "Gruntfuggly"
},
"name": "todo-tree",
"publisher": "Gruntfuggly",
"version": "0.0.214"
},
{
"metadata": {
"id": "7a21e2ae-a6dd-4666-b31d-871b4862f214",
"publisherId": "eamodio.toggle-excluded-files",
"publisherDisplayName": "eamodio"
},
"name": "toggle-excluded-files",
"publisher": "eamodio",
"version": "1.7.0"
},
{
"metadata": {
"id": "91881318-cfd0-4905-adb7-f4e431ca1ead",
"publisherId": "denoland.vscode-deno",
"publisherDisplayName": "denoland"
},
"name": "vscode-deno",
"publisher": "denoland",
"version": "3.9.1"
},
{
"metadata": {
"id": "0479fc1c-3d67-49f9-b087-fb9069afe48f",
"publisherId": "ms-azuretools.vscode-docker",
"publisherDisplayName": "ms-azuretools"
},
"name": "vscode-docker",
"publisher": "ms-azuretools",
"version": "1.17.0"
},
{
"metadata": {
"id": "b89a4a50-dd58-4c3f-9e84-3eb5c2ed3c1f",
"publisherId": "RoyalMist.vscode-eex-format",
"publisherDisplayName": "RoyalMist"
},
"name": "vscode-eex-format",
"publisher": "RoyalMist",
"version": "0.2.0"
},
{
"metadata": {
"id": "21b3e09e-b3f7-4e20-9302-50039286650d",
"publisherId": "mkxml.vscode-filesize",
"publisherDisplayName": "mkxml"
},
"name": "vscode-filesize",
"publisher": "mkxml",
"version": "3.1.0"
},
{
"metadata": {
"id": "d637104e-1fd7-4063-98fc-8afe46012c9b",
"publisherId": "sleistner.vscode-fileutils",
"publisherDisplayName": "sleistner"
},
"name": "vscode-fileutils",
"publisher": "sleistner",
"version": "3.4.5"
},
{
"metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "vscode-icons-team.vscode-icons",
"publisherDisplayName": "vscode-icons-team"
},
"name": "vscode-icons",
"publisher": "vscode-icons-team",
"version": "11.6.0"
},
{
"metadata": {
"id": "caf8995c-5426-4bf7-9d01-f7968ebd49bb",
"publisherId": "asvetliakov.vscode-neovim",
"publisherDisplayName": "asvetliakov"
},
"name": "vscode-neovim",
"publisher": "asvetliakov",
"version": "0.0.82"
},
{
"metadata": {
"id": "3161f9cc-a558-4807-a5c9-15588d02ff61",
"publisherId": "muhajirframe.vscode-react-emotion",
"publisherDisplayName": "muhajirframe"
},
"name": "vscode-react-emotion",
"publisher": "muhajirframe",
"version": "0.1.0"
},
{
"metadata": {
"id": "ec35b5a3-9802-4c68-b5ff-e85f19ec0977",
"publisherId": "stylelint.vscode-stylelint",
"publisherDisplayName": "stylelint"
},
"name": "vscode-stylelint",
"publisher": "stylelint",
"version": "0.86.0"
},
{
"metadata": {
"id": "4db62a7c-7d70-419c-96d2-6c3a4dc77ea5",
"publisherId": "bradlc.vscode-tailwindcss",
"publisherDisplayName": "bradlc"
},
"name": "vscode-tailwindcss",
"publisher": "bradlc",
"version": "0.6.14"
},
{
"metadata": {
"id": "9b2c953d-6ad4-46d1-b18e-7e5992d1d8a6",
"publisherId": "akamud.vscode-theme-onedark",
"publisherDisplayName": "akamud"
},
"name": "vscode-theme-onedark",
"publisher": "akamud",
"version": "2.2.3"
},
{
"metadata": {
"id": "2fd56207-78ef-49d4-95d2-9b801eee4dbf",
"publisherId": "rangav.vscode-thunder-client",
"publisherDisplayName": "rangav"
},
"name": "vscode-thunder-client",
"publisher": "rangav",
"version": "1.9.1"
},
{
"metadata": {
"id": "2d311767-016c-4e68-bda8-8711eb4af56d",
"publisherId": "ouven.vscode-yab-for-eex-leex",
"publisherDisplayName": "ouven"
},
"name": "vscode-yab-for-eex-leex",
"publisher": "ouven",
"version": "1.0.3"
}
]
{
"telemetry.enableTelemetry": false,
"workbench.colorCustomizations": {
"editorCursor.foreground": "#ffbe00",
"editorLineNumber.activeForeground": "#917600",
"tab.activeBackground": "#232330",
"tab.inactiveBackground": "#343547",
"tab.inactiveForeground": "#d0d0d9",
"tab.activeBorder": "#8b4bb3",
"tab.border": "#1a1721",
"scrollbarSlider.hoverBackground": "#404044",
"scrollbarSlider.activeBackground": "#454549",
"editorLineNumber.foreground": "#575466",
"scrollbarSlider.background": "#404044",
"editorGutter.background": "#1f202b",
"editor.lineHighlightBackground": "#171721",
"editor.lineHighlightBorder": "#171721",
"editor.background": "#1d1d26",
"sideBar.background": "#2c2c3b",
"sideBar.foreground": "#d0d0d9",
"sideBarSectionHeader.background": "#45395c",
"sideBarSectionHeader.foreground": "#aba6bb",
"sideBarSectionHeader.border": "#1a1721",
"sideBarTitle.foreground": "#d0d0da",
"sideBar.border": "#1a1721",
"statusBar.background": "#2c2c3b",
"statusBar.foreground": "#d0d0da",
"statusBar.border": "#1a1721",
"terminal.background": "#1d1d26",
"panel.background": "#45395c",
"panel.border": "#1a1721",
"panelTitle.inactiveForeground": "#8b8096",
"editorCursor.background": "#1a1721",
"editorPane.background": "#ff0000",
"activityBar.background": "#45395c",
"activityBar.foreground": "#a4a0b3",
"activityBar.inactiveForeground": "#827c96",
"editorGroupHeader.tabsBackground": "#45395c",
"statusBarItem.hoverBackground": "#52446d",
"button.background": "#4765b1",
"button.hoverBackground": "#5172c5",
"settings.dropdownBackground": "#2b2c3b",
"settings.dropdownBorder": "#45395c",
"settings.dropdownForeground": "#d0d0d9",
"settings.checkboxBackground": "#45395c",
"settings.textInputBackground": "#2b2c3b",
"settings.textInputBorder": "#45395c",
"settings.checkboxBorder": "#713a91",
"settings.numberInputBackground": "#2b2c3b",
"settings.headerForeground": "#d0d0d9",
"list.hoverBackground": "#45395c",
"list.hoverForeground": "#ffe9ac",
"terminal.border": "#1a1721",
},
"editor.tokenColorCustomizations": {
"strings": "#2ca76b",
},
"editor.minimap.enabled": false,
"editor.fontFamily": "LigaNerdFontOM-SFMono-Regular",
"editor.fontSize": 16,
"terminal.integrated.fontFamily": "LigaNerdFontOM-SFMono-Light",
"editor.cursorWidth": 1,
"editor.fontLigatures": true,
"editor.occurrencesHighlight": false,
"editor.scrollbar.verticalScrollbarSize": 8,
"terminal.external.osxExec": "iTerm.app",
"terminal.explorerKind": "external",
"terminal.integrated.fontSize": 15,
"markdown.preview.fontSize": 16,
"editor.letterSpacing": -0.25,
"workbench.fontAliasing": "antialiased",
"editor.cursorBlinking": "solid",
"editor.tabCompletion": "on",
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.insertSpaces": false,
"editor.formatOnType": true,
"editor.wordBasedSuggestions": false,
"editor.trimAutoWhitespace": false,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"editor.detectIndentation": false,
"workbench.statusBar.visible": true,
"explorer.confirmDragAndDrop": false,
"editor.lineNumbers": "relative",
"todo-tree.tree.showScanModeButton": false,
"workbench.iconTheme": "vscode-icons",
"liveServer.settings.donotShowInfoMsg": true,
"files.exclude": {
"_build": true,
".gitignore": true,
".env": true,
"Mnesia*": true,
"**/.elixir_ls": true,
"**/.eslintrc.json": true,
"**/{.??*}": true,
"**/*.pyc": true,
"**/node_modules": true,
"deps": true
},
"runOnSave.commands": [
{
"match": ".*\\.ex",
"command": "mix format ${file}",
"runIn": "backend",
"finishStatusMessage": "${file} formatted",
},
{
"match": ".*\\.exs",
"command": "mix format ${file}",
"runIn": "backend",
"finishStatusMessage": "${file} formatted",
},
],
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"html.format.endWithNewline": true,
"html.format.indentHandlebars": true,
"html.format.indentInnerHtml": true,
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"[scss]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"[css]": {
"editor.defaultFormatter": "svipas.prettier-plus"
},
"emmet.triggerExpansionOnTab": true,
"emmet.showExpandedAbbreviation": "always",
"emmet.showAbbreviationSuggestions": true,
"emmet.showSuggestionsAsSnippets": true,
"tailwindCSS.emmetCompletions": true,
"emmet.includeLanguages": {
"HTML (EEx)": "html",
"HTML (LEEx)": "html",
"phoenix-heex": "html",
"HEEx": "html",
"html-eex": "html",
"javascript": "javascriptreact",
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features",
"editor.formatOnSave": true
},
"files.associations": {
"*.jsx": "javascriptreact",
"*.tsx": "typescriptreact",
"*.js": "javascript",
"*.ex": "elixir",
"*.exs": "elixir",
"*.html.eex": "html-eex",
"*.html.leex": "html-eex",
"*.eex": "eex",
},
"files.autoSave": "onFocusChange",
"workbench.startupEditor": "newUntitledFile",
"sync.gist": "6cd19b0b6957d109c00c023126465766",
"terminal.integrated.fontWeightBold": "400",
"html.format.wrapLineLength": 140,
"editor.wordWrapColumn": 160,
"editor.acceptSuggestionOnEnter": "smart",
"explorer.confirmDelete": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.wordWrap": "on",
"vim.textwidth": 100,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
],
"[typescript]": {
"editor.defaultFormatter": "svipas.prettier-plus"
},
"[phoenix-heex]": {
"editor.defaultFormatter": "RoyalMist.vscode-eex-format"
},
"typescript.updateImportsOnFileMove.enabled": "always",
"[typescriptreact]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"terminal.integrated.inheritEnv": false,
"[html-eex]": {
"editor.defaultFormatter": "RoyalMist.vscode-eex-format"
},
"stylelint.config": {
"extends": "stylelint-config-recommended",
"rules": {
"at-rule-no-unknown": [
true,
{
"ignoreAtRules": [
"tailwind",
"apply",
"variants",
"responsive",
"screen",
"extends",
"layer",
"ignores"
],
},
],
"no-duplicate-selectors": null,
"block-no-empty": null,
"declaration-block-trailing-semicolon": null,
"no-descending-specificity": null,
"no-invalid-position-at-import-rule": null,
},
},
"css.validate": false,
"less.validate": false,
"scss.validate": false,
"stylelint.configBasedir": "/usr/local/lib/node_modules/stylelint-config-standard",
"vsicons.dontShowNewVersionMessage": true,
"prettier.singleQuote": true,
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"XXX",
"[ ]",
"[x]"
],
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)",
"tabnine.experimentalAutoImports": true,
"editor.linkedEditing": true,
"terminal.integrated.scrollback": 2000,
"workbench.activityBar.visible": false,
"workbench.colorTheme": "Atom One Dark",
"terminal.integrated.sendKeybindingsToShell": true,
"editor.cursorStyle": "line",
"editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
"vim.smartRelativeLine": true,
"vim.camelCaseMotion.enable": true,
"vim.hlsearch": true,
"vim.normalModeKeyBindings": [],
"terminal.integrated.tabs.enabled": false,
"vscode-neovim.neovimExecutablePaths.darwin": "/usr/local/bin/nvim",
"vscode-neovim.neovimInitVimPaths.darwin": "/Users/alaadahmed/.config/nvim/init.vim",
"security.workspace.trust.untrustedFiles": "open",
"tailwindCSS.includeLanguages": {
"phoenix-heex": "html"
},
}
// {
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
// }
{
"lv_module": {
"prefix": "lv",
"body": [
"defmodule AhramSchoolWeb.${1}Live do",
" use AhramSchoolWeb, :live_view",
"end"
],
"description": "LiveView module"
},
"lc_module": {
"prefix": "lc",
"body": [
"defmodule AhramSchoolWeb.${1}Component do",
" use AhramSchoolWeb, :live_component",
"end"
],
"description": "LiveComponent module"
},
"lv_mount": {
"prefix": "mount",
"body": [
"def mount(_params, _session, socket) do",
" socket = assign(socket, ${1:key}: ${2:value})",
" {:ok, socket}",
"end"
],
"description": "LiveView mount function"
},
"lc_mount": {
"prefix": "mountc",
"body": [
"def mount(socket) do",
" {:ok, socket}",
"end"
],
"description": "LiveView mount function"
},
"lv_rend": {
"prefix": "rend",
"body": [
"def render(assigns) do",
" ~L\"\"\"",
" ${0}",
" \"\"\"",
"end"
],
"description": "LiveView render function"
},
"lv_handle_call": {
"prefix": "hcl",
"body": [
"def handle_call(${1:event}, _from, state) do",
" {:reply, state, state}",
"end"
],
"description": "GenServer handle_call function"
},
"lv_handle_cast": {
"prefix": "hcs",
"body": [
"def handle_cast(${1:event}, state) do",
" {:noreply, state}",
"end"
],
"description": "GenServer handle_call function"
},
"lv_handle_continue": {
"prefix": "hcn",
"body": [
"def handle_continue(${1:event}, state) do",
" {:noreply, state}",
"end"
],
"description": "GenServer handle_continue function"
},
"lv_handle_event": {
"prefix": "he",
"body": [
"def handle_event(${1:event}, _, socket) do",
" socket = assign(socket, ${2:key}: ${3:value})",
" {:noreply, socket}",
"end"
],
"description": "LiveView handle_event function"
},
"lv_handle_info": {
"prefix": "hi",
"body": [
"def handle_info(${1:message}, socket) do",
" socket = assign(socket, ${2:key}: ${3:value})",
" {:noreply, socket}",
"end"
],
"description": "LiveView handle_info function"
},
"lv_handle_params": {
"prefix": "hp",
"body": [
"def handle_params(params, _url, socket) do",
" {:noreply, socket}",
"end"
],
"description": "LiveView handle_params function"
},
"lv_template": {
"prefix": "lt",
"body": [
"~L\"\"\"",
"${0}",
"\"\"\""
],
"description": "LiveView inline template"
},
"eex_h1": {
"prefix": "h1",
"body": [
"<h1>${0}</h1>"
],
"description": "EEx h1"
},
"eex_div_class": {
"prefix": "div",
"body": [
"<div class=\"${1}\">",
" ${0}",
"</div>",
],
"description": "EEx div with class"
},
"eex_div_id": {
"prefix": "divi",
"body": [
"<div id=\"${1}\">",
" ${0}",
"</div>",
],
"description": "EEx div with id"
},
"eex_span_class": {
"prefix": "span",
"body": [
"<span class=\"${1}\">",
" ${0}",
"</span>",
],
"description": "EEx span with class"
},
"eex_span_style": {
"prefix": "spans",
"body": [
"<span style=\"${1}\">",
" ${0}",
"</span>",
],
"description": "EEx span with width"
},
"eex_form": {
"prefix": "form",
"body": [
"<form>",
" ${0}",
"</form>",
],
"description": "EEx form"
},
"eex_button": {
"prefix": "button",
"body": [
"<button>",
" ${0}",
"</button>"
],
"description": "EEx button"
},
"eex_img": {
"prefix": "img",
"body": [
"<img src=\"${1}\">"
],
"description": "EEx img"
},
"eex_datalist": {
"prefix": "data",
"body": [
"<datalist id=\"${1}\">",
" ${0}",
"</datalist>",
],
"description": "EEx datalist"
},
"eex_input": {
"prefix": "input",
"body": [
"<input type=\"text\" name=\"${1}\" value=\"${2}\"",
" placeholder=\"${3}\" />"
],
"description": "EEx text input"
},
"eex_hidden_input": {
"prefix": "hidden",
"body": [
"<input type=\"hidden\" name=\"${1}\" value=\"${2}\" />"
],
"description": "EEx hidden input"
},
"eex_checkbox_input": {
"prefix": "checkbox",
"body": [
"<input type=\"checkbox\" id=\"${1}\" name=\"${2}\" value=\"${3}\"/>"
],
"description": "EEx checkbox input"
},
"eex_select": {
"prefix": "select",
"body": [
"<select name=\"${1}\">",
"</select>"
],
"description": "EEx select input"
},
"eex_option": {
"prefix": "option",
"body": [
"<option value=\"${1}\">${0}</option>"
],
"description": "EEx option"
},
"eex_label": {
"prefix": "label",
"body": [
"<label for=\"${1}\">${2}</label>"
],
"description": "EEx label"
},
"eex_href": {
"prefix": "a",
"body": [
"<a href=\"#\">${1}</a>"
],
"description": "EEx anchor tag"
},
"eex_render_block": {
"prefix": "et",
"body": [
"<%= $1 %>"
],
"description": "<%= %> render block"
},
"eex_render_block_gettext": {
"prefix": "etg",
"body": [
"<%= gettext(\"$1\") %>"
],
"description": "<%= %> render block"
},
"eex_end_tag": {
"prefix": "eend",
"body": [
"<% end %>$1"
],
"description": "<% end %> end tag"
},
"for": {
"prefix": "efor",
"body": [
"<%= for ${1:item} <- @$1s do %>",
" $2",
"<% end %>"
],
"description": "EEx for"
},
"fori": {
"prefix": "efori",
"body": [
"<%= for ${1:item} <- @$1s do %>",
" $2",
"<% end %>"
],
"description": "EEx for comprehension with items"
},
"eex_ifa": {
"prefix": "eifa",
"body": [
"<%= if $1, do: \"{$1}\" %>"
],
"description": "EEx if for attribute"
},
"eex_if": {
"prefix": "eif",
"body": [
"<%= if $1 do %>",
" $2",
"<% end %>"
],
"description": "EEx if"
},
"eex_if_else": {
"prefix": "eife",
"body": [
"<%= if $1 do %>",
" $2",
"<% else %>",
" $3",
"<% end %>"
],
"description": "EEx if else"
},
"eex_else": {
"prefix": "eelse",
"body": [
"<% else %>"
],
"description": "EEx else"
},
"eex_cond": {
"prefix": "econd",
"body": [
"<%= cond do %>",
" <% $1 -> %>",
" $2",
" <% true -> %>",
" $3",
"<% end %>"
],
"description": "EEx cond"
},
"eex_unless": {
"prefix": "eunless",
"body": [
"<%= unless $1 do %>",
" $2",
"<% end %>"
],
"description": "EEx unless"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment