Skip to content

Instantly share code, notes, and snippets.

@imkarimkarim
Last active May 30, 2024 13:48
Show Gist options
  • Save imkarimkarim/fc97b4dbbe2ce13b90aa1b0826e1b95b to your computer and use it in GitHub Desktop.
Save imkarimkarim/fc97b4dbbe2ce13b90aa1b0826e1b95b to your computer and use it in GitHub Desktop.
VSCode's Settings - Syncing
[
{
"id": "aaron-bond.better-comments",
"name": "better-comments",
"publisher": "aaron-bond",
"version": "3.0.2"
},
{
"id": "adpyke.codesnap",
"name": "codesnap",
"publisher": "adpyke",
"version": "1.3.4"
},
{
"id": "astro-build.astro-vscode",
"name": "astro-vscode",
"publisher": "astro-build",
"version": "2.10.2"
},
{
"id": "bradlc.vscode-tailwindcss",
"name": "vscode-tailwindcss",
"publisher": "bradlc",
"version": "0.10.5"
},
{
"id": "ChakrounAnas.turbo-console-log",
"name": "turbo-console-log",
"publisher": "ChakrounAnas",
"version": "2.10.4"
},
{
"id": "DavidAnson.vscode-markdownlint",
"name": "vscode-markdownlint",
"publisher": "DavidAnson",
"version": "0.54.0"
},
{
"id": "dbaeumer.vscode-eslint",
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "2.4.4"
},
{
"id": "dsznajder.es7-react-js-snippets",
"name": "es7-react-js-snippets",
"publisher": "dsznajder",
"version": "4.4.3"
},
{
"id": "eamodio.gitlens",
"name": "gitlens",
"publisher": "eamodio",
"version": "15.0.4"
},
{
"id": "ecmel.vscode-html-css",
"name": "vscode-html-css",
"publisher": "ecmel",
"version": "2.0.9"
},
{
"id": "esbenp.prettier-vscode",
"name": "prettier-vscode",
"publisher": "esbenp",
"version": "10.4.0"
},
{
"id": "heybourn.headwind",
"name": "headwind",
"publisher": "heybourn",
"version": "2.0.0"
},
{
"id": "mikestead.dotenv",
"name": "dotenv",
"publisher": "mikestead",
"version": "1.0.1"
},
{
"id": "nonoroazoro.syncing",
"name": "syncing",
"publisher": "nonoroazoro",
"version": "3.3.7"
},
{
"id": "PKief.material-icon-theme",
"name": "material-icon-theme",
"publisher": "PKief",
"version": "5.3.0"
},
{
"id": "quicktype.quicktype",
"name": "quicktype",
"publisher": "quicktype",
"version": "12.0.46"
},
{
"id": "rangav.vscode-thunder-client",
"name": "vscode-thunder-client",
"publisher": "rangav",
"version": "2.23.9"
},
{
"id": "seatonjiang.gitmoji-vscode",
"name": "gitmoji-vscode",
"publisher": "seatonjiang",
"version": "1.2.5"
},
{
"id": "Tomi.xasnippets",
"name": "xasnippets",
"publisher": "Tomi",
"version": "2.13.1"
},
{
"id": "vivaxy.vscode-conventional-commits",
"name": "vscode-conventional-commits",
"publisher": "vivaxy",
"version": "1.25.0"
},
{
"id": "vscodevim.vim",
"name": "vim",
"publisher": "vscodevim",
"version": "1.27.2"
},
{
"id": "WakaTime.vscode-wakatime",
"name": "vscode-wakatime",
"publisher": "WakaTime",
"version": "24.4.0"
},
{
"id": "zhuangtongfa.material-theme",
"name": "material-theme",
"publisher": "zhuangtongfa",
"version": "3.17.2"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "f1",
"command": "-workbench.action.showCommands"
},
{
"key": "f1",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+shift+c",
"command": "-workbench.action.terminal.openNativeConsole",
"when": "!terminalFocus"
},
{
"key": "ctrl+shift+c",
"command": "-workbench.action.terminal.copySelection",
"when": "terminalTextSelectedInFocused || terminalFocus && terminalHasBeenCreated && terminalTextSelected || terminalFocus && terminalProcessSupported && terminalTextSelected || terminalFocus && terminalTextSelected && terminalTextSelectedInFocused || terminalHasBeenCreated && terminalTextSelected && terminalTextSelectedInFocused || terminalProcessSupported && terminalTextSelected && terminalTextSelectedInFocused"
},
{
"key": "ctrl+shift+c",
"command": "workbench.view.extension.codeium"
},
{
"key": "ctrl+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+shift+g /",
"command": "-gitlens.gitCommands",
"when": "!gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g .",
"command": "-gitlens.diffWithNext",
"when": "editorTextFocus && !isInDiffEditor && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /revision/"
},
{
"key": "ctrl+shift+g .",
"command": "-gitlens.diffWithNextInDiffLeft",
"when": "editorTextFocus && isInDiffEditor && !isInDiffRightEditor && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /revision/"
},
{
"key": "ctrl+shift+g .",
"command": "-gitlens.diffWithNextInDiffRight",
"when": "editorTextFocus && isInDiffRightEditor && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /revision/"
},
{
"key": "ctrl+shift+g ,",
"command": "-gitlens.diffWithPrevious",
"when": "editorTextFocus && !isInDiffEditor && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "ctrl+shift+g ,",
"command": "-gitlens.diffWithPreviousInDiffLeft",
"when": "editorTextFocus && isInDiffEditor && !isInDiffRightEditor && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "ctrl+shift+g ,",
"command": "-gitlens.diffWithPreviousInDiffRight",
"when": "editorTextFocus && isInDiffRightEditor && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "ctrl+shift+g shift+[IntlBackslash]",
"command": "-gitlens.diffWithWorking",
"when": "editorTextFocus && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /revision/"
},
{
"key": "ctrl+shift+g shift+.",
"command": "-gitlens.diffWithWorking",
"when": "editorTextFocus && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /revision/"
},
{
"key": "ctrl+shift+g [IntlBackslash]",
"command": "-gitlens.diffLineWithPrevious",
"when": "editorTextFocus && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "ctrl+shift+g shift+,",
"command": "-gitlens.diffLineWithPrevious",
"when": "editorTextFocus && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
},
{
"key": "ctrl+shift+g c",
"command": "-gitlens.showQuickCommitFileDetails",
"when": "editorTextFocus && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g shift+h",
"command": "-gitlens.showQuickRepoHistory",
"when": "!gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g h",
"command": "-gitlens.showQuickFileHistory",
"when": "!gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g s",
"command": "-gitlens.showQuickRepoStatus",
"when": "!gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g b",
"command": "-gitlens.toggleFileBlame",
"when": "editorTextFocus && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /blameable/"
},
{
"key": "ctrl+shift+g shift+b",
"command": "-gitlens.toggleCodeLens",
"when": "editorTextFocus && !gitlens:disabled && !gitlens:disabledToggleCodeLens && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+shift+g g",
"command": "-workbench.view.scm",
"when": "workbench.scm.active && !gitlens:disabled && config.gitlens.keymap == 'chorded'"
},
{
"key": "ctrl+i",
"command": "-codeium.openCodeiumCommand",
"when": "codeium.commandEnabled && editorTextFocus && !inlineSuggestionsVisible"
},
{
"key": "ctrl+p",
"command": "-extension.vim_ctrl+p",
"when": "editorTextFocus && vim.active && vim.use<C-p> && !inDebugRepl || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'CommandlineInProgress' || vim.active && vim.use<C-p> && !inDebugRepl && vim.mode == 'SearchInProgressMode'"
},
{
"key": "ctrl+f",
"command": "-extension.vim_ctrl+f",
"when": "editorTextFocus && vim.active && vim.use<C-f> && !inDebugRepl && vim.mode != 'Insert'"
},
{
"key": "ctrl+i",
"command": "-extension.vim_ctrl+i",
"when": "editorTextFocus && vim.active && vim.use<C-i> && !inDebugRepl"
},
{
"key": "ctrl+w",
"command": "-extension.vim_ctrl+w",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
},
{
"key": "ctrl+v",
"command": "-extension.vim_ctrl+v",
"when": "editorTextFocus && vim.active && vim.use<C-v> && !inDebugRepl"
},
{
"key": "ctrl+c",
"command": "-extension.vim_ctrl+c",
"when": "editorTextFocus && vim.active && vim.overrideCtrlC && vim.use<C-c> && !inDebugRepl"
},
{
"key": "ctrl+x",
"command": "-extension.vim_ctrl+x",
"when": "editorTextFocus && vim.active && vim.use<C-x> && !inDebugRepl"
},
{
"key": "ctrl+g",
"command": "-extension.vim_ctrl+g",
"when": "editorTextFocus && vim.active && vim.use<C-g> && !inDebugRepl"
},
{
"key": "ctrl+a",
"command": "-extension.vim_ctrl+a",
"when": "editorTextFocus && vim.active && vim.use<C-a> && !inDebugRepl"
}
]
{
"sync.autoDownload": true,
"sync.autoUpload": true,
"sync.gist": "697ccc1ecc375bdb902e848ee475e2e4",
"workbench.tips.enabled": false,
"editor.lineHeight": 1.6,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"git.autofetch": true,
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"sync.quietSync": true,
"tabnine.experimentalAutoImports": true,
"git.enableSmartCommit": true,
"sync.forceDownload": false,
"sync.forceUpload": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"liveServer.settings.donotShowInfoMsg": true,
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"git.confirmSync": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"breadcrumbs.enabled": false,
"editor.scrollbar.vertical": "hidden",
"editor.scrollbar.verticalScrollbarSize": 0,
"workbench.activityBar.iconClickBehavior": "focus",
"editor.minimap.showSlider": "always",
"workbench.tree.renderIndentGuides": "onHover",
"editor.suggest.showIcons": false,
"bracketPairColorizer.depreciation-notice": false, // removes minimap
"editor.renderWhitespace": "none", // removes indent guides
"editor.renderLineHighlight": "none", // removes line highlight
"editor.overviewRulerBorder": false, // removes border from overview ruler (located on the right, same position as the scrollbar)
"editor.hideCursorInOverviewRuler": true, // hides cursor mark in the overview ruler
"editor.folding": false, // removes the folding feature
"editor.occurrencesHighlight": "off", // removes highlights occurrences (still works when you select a word)
"editor.matchBrackets": "always", // removes the highlight of matching brackets (I use Subtle Match Brackets extension for this)
"editor.glyphMargin": false, // removes the space used mainly for debugging indicators
"explorer.openEditors.visible": 0, // removes the activity bar (the 4 icons at the left of the screen), so now you will have to open the explorer, git, debugger and extension with shortcuts or through the Command Palette
"workbench.editor.showIcons": true, // removes icon from opened files in tabs
"workbench.editor.tabCloseButton": "right", // removes the status bar
"indenticator.color.dark": "rgba(255,255,255,.1)", // adds a subtle indent guide (needs Indenticator extension)
"workbench.colorCustomizations": {
// object that allows you to customize your color theme: https://code.visualstudio.com/docs/getstarted/theme-color-reference
"tab.activeBorder": "#0000" // removes border to highlight active tabs (the colors formats are: #RGB, #RGBA, #RRGGBB or #RRGGBBAA)
},
"workbench.iconTheme": "material-icon-theme",
"cSpell.userWords": [
"antd",
"apos",
"astro",
"astrojs",
"axios",
"bgcolor",
"childs",
"coffeemenu",
"Coffeeshop",
"cout",
"crossorigin",
"daygrid",
"Elysia",
"elysiajs",
"esbuild",
"exif",
"filepond",
"Flickity",
"fontsource",
"fullcalendar",
"Ghasedak",
"GIPHY",
"Hashids",
"Hello",
"Hono",
"iconsax",
"imkarimkarim",
"karim",
"karim's",
"karimrun",
"liara",
"main",
"Mantine",
"melli",
"metft",
"middlewares",
"muirtl",
"namespace",
"nextjs",
"Notif",
"Notifbar",
"Notifs",
"notistack",
"onpushstate",
"pankod",
"Pino",
"Pinterest",
"pocketbase",
"prefixer",
"Pressable",
"pytz",
"refinedev",
"return",
"roboto",
"Satoshi",
"sessionwebrefno",
"setted",
"shamsi",
"stylis",
"Swal",
"sweetalert",
"Swipeable",
"tailwindcss",
"Textalign",
"timegrid",
"tinymce",
"todos",
"Toman",
"typecheck",
"uniqid",
"usehooks",
"using",
"Vazirmatn",
"vite",
"Waka",
"Wakatime",
"World",
"XCHX",
"آزاد",
"آنلاین",
"ادامه",
"ارسال",
"استفاده",
"اصلی",
"اضافه",
"افزار",
"الآن",
"انبار",
"انتخاب",
"انصراف",
"اومدی",
"ایجاد",
"ایران",
"ایمیل",
"باشد",
"باشه",
"بانکی",
"باید",
"بدون",
"بذار",
"برات",
"برای",
"برخوردی",
"بساز",
"بسته",
"بعدا",
"بمون",
"بندی",
"بهتر",
"بودن",
"پرداخت",
"پرکردن",
"پیشفرض",
"ترین",
"تغییر",
"تغییرات",
"تغییرش",
"تکرار",
"تنظیم",
"تنظیمات",
"توسعه",
"توضیح",
"توضیحات",
"تومان",
"تومن",
"جایی",
"حداکثر",
"حساب",
"خالی",
"خالیه",
"خروج",
"خروجی",
"داری",
"داشبورد",
"درحال",
"درگاه",
"دسته",
"دقیق",
"دهنده",
"دیگه",
"ذخیره",
"رندوم",
"سلام",
"شدنمون",
"شروع",
"عبور",
"فروشگاه",
"فروشگاهت",
"فعلا",
"قابل",
"قیمت",
"کاربری",
"کارکتر",
"کردن",
"کردیم",
"کنید",
"کنیم",
"گزارش",
"لطفا",
"لیست",
"لینک",
"محصول",
"محصولات",
"محصولی",
"مربعی",
"مشکل",
"مشکلی",
"معتبر",
"ممنونیم",
"منوی",
"موجود",
"موفقیت",
"میتونی",
"میشه",
"میکنی",
"میکنیم",
"نداری",
"نشده",
"نمیتواند",
"هزار",
"همیشه",
"هنگام",
"ورود",
"ویرایش"
],
"bracket-pair-colorizer-2.depreciation-notice": false, // removes indent guides
"editor.guides.indentation": true,
"editor.minimap.renderCharacters": false,
"clangd.path": "/home/k/.config/VSCodium/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.1/clangd_15.0.1/bin/clangd",
"svelte.enable-ts-plugin": true,
"svelte.plugin.svelte.note-new-transformation": false,
"quokka.showOutputOnStart": false,
"quokka.automaticRestart": true,
"quokka.colorizeOutput": false,
"quokka.colors": {
"covered": "#62b455",
"errorPath": "#ffa0a0",
"errorSource": "#fe536a",
"notCovered": "#cccccc",
"partiallyCovered": "#d2a032"
},
"importCost.fontStyle": "italic",
"editor.linkedEditing": true,
"typescript.disableAutomaticTypeAcquisition": true,
"eslint.alwaysShowStatus": true,
"javascript.format.enable": false,
"javascript.format.insertSpaceAfterCommaDelimiter": false,
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
"javascript.format.insertSpaceAfterKeywordsInControlFlowStatements": false,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false,
"javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
"typescript.format.enable": false,
"turboConsoleLog.delimiterInsideMessage": "-",
"turboConsoleLog.includeFileNameAndLineNum": false,
"files.autoSave": "onFocusChange",
"CodeGPT.query.language": "English",
"codegpt.apiKey": "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",
"github.copilot.advanced": {},
"github.copilot.enable": {
"*": true,
"yaml": false,
"plaintext": false,
"markdown": false
},
"git.openRepositoryInParentFolders": "never",
"extensions.autoUpdate": false,
"importCost.timeout": 60000,
"codeium.enableConfig": {
"*": true,
"astro": true
},
"[svelte]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"svelte.plugin.svelte.format.config.singleQuote": true,
"prettier.tabWidth": 4,
"security.workspace.trust.untrustedFiles": "open",
"[markdown]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
},
"window.menuBarVisibility": "toggle",
"conventionalCommits.showNewVersionNotes": false,
"git.allowNoVerifyCommit": true,
"conventionalCommits.emojiFormat": "emoji",
"codeium.enableSearch": true,
"codeium.useSecretStorage": false,
"prettier.printWidth": 120,
"prettier.useTabs": true,
"prettier.semi": true,
"prettier.singleQuote": true,
"prettier.jsxSingleQuote": true,
"prettier.endOfLine": "auto",
"svelte.plugin.svelte.format.config.printWidth": 120,
"prettier.bracketSameLine": true,
"files.associations": {
"**/*.html": "html",
"**/templates/**/*.html": "django-html",
"**/templates/**/*": "django-txt",
"**/requirements{/**,*}.{txt,in}": "pip-requirements"
},
"emmet.includeLanguages": {
"django-html": "html"
},
"editor.formatOnSave": true,
"prettier.useEditorConfig": false,
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"material-icon-theme.folders.theme": "specific",
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
},
"diffEditor.ignoreTrimWhitespace": false,
"pylint.args": ["--extension-pkg-whitelist=pygame"],
"window.zoomLevel": 1,
"workbench.activityBar.location": "hidden",
"workbench.editor.tabActionLocation": "right",
"terminal.integrated.fontFamily": "Operator Mono Medium , Fira Code iScript , Consolas, 'Courier New', monospace",
"editor.fontFamily": "Operator Mono Medium , Fira Code iScript , Consolas, 'Courier New', monospace",
"editor.fontSize": 15,
"codeium.enableCodeLens": false,
"launch": {
"configurations": []
},
"[dart]": {
// "editor.formatOnSave": true,
// "editor.formatOnType": true,
// "editor.rulers": [80],
// "editor.selectionHighlight": false,
// "editor.suggestSelection": "first",
// "editor.tabCompletion": "onlySnippets",
// "editor.wordBasedSuggestions": "off"
},
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1
},
"emeraldwalk.runonsave": {
"commands": [
{
"match": "en.js",
"isAsync": true,
"cmd": "npm run g-i18n-types"
}
]
},
"prettier.configPath": ".prettierrc",
"workbench.startupEditor": "none",
"workbench.colorTheme": "One Dark Pro Flat",
"redhat.telemetry.enabled": false
}
{
// 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"
// }
"Console Log": {
"prefix": "clog",
"body": [
"console.log(\"$2: \", $2);"
],
"description": "Custome console.log"
}
}
{
// 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"
// }
"Nextjs Page": {
"prefix": "npage",
"body": ["export default function Page() {", " return <>$2</>;", "}"],
"description": "Nextjs page boilerplate"
},
"Nextjs use client": {
"prefix": "uc",
"body": ["'use client';\n"],
"description": "Nextjs use client"
},
"Nextjs use server": {
"prefix": "us",
"body": ["'use server';\n"],
"description": "Nextjs use server"
},
"Nextjs is client": {
"prefix": "isc",
"body": ["const isClient = useIsClient$2();"],
"description": "Nextjs is client"
}
}
{
// 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"
// }
"useEffect Console Log": {
"prefix": "ulog",
"body": [
"useEffect(() => {",
"console.log(\"$2: \", $2);",
"}, [$2])"
],
"description": "Custome console.log"
},
"useEffect": {
"prefix": "ue",
"body": [
"useEffect(() => {",
" $1",
"}, [])"
],
"description": "Prints simple useEffect"
},
}
{
// Place your snippets for svelte here. Each snippet is defined under a snippet name and has a prefix, body and
// description. 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": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Svelte Script TS": {
"prefix": "sts",
"body": ["console.log('$1');", "$2"],
"description": "Log output to console"
}
}
{
// Place your snippets for typescript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. 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": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Svelte GET": {
"prefix": "sget",
"body": ["import { json } from '@sveltejs/kit';", "", "export const GET = async () => {", "return json({});", "};"]
},
"Svelte POST": {
"prefix": "spost",
"body": ["import { json } from '@sveltejs/kit';", "", "export const POST = async () => {", "return json({});", "};"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment