Skip to content

Instantly share code, notes, and snippets.

@ayoubzulfiqar
Last active March 8, 2024 11:59
Show Gist options
  • Save ayoubzulfiqar/30bb1fe127ae6619c790436e5a143801 to your computer and use it in GitHub Desktop.
Save ayoubzulfiqar/30bb1fe127ae6619c790436e5a143801 to your computer and use it in GitHub Desktop.
VSCode WorkBech JSON Profiles Custom Settings

VS Code Custom Profile

Default

{
  "workbench.colorTheme": "Tokyo Night",
  "workbench.colorCustomizations": {
    "editor.background": "#090909",
    "sideBar.background": "#090909",
    "terminal.background": "#090909",
    "activityBar.background": "#090909",
    "activityBar.border": "#090909",
    "activityBar.activeBorder": "#090909",
    "dropdown.background": "#090909",
    "dropdown.listBackground": "#090909",
    "dropdown.border": "#090909",
    "panel.background": "#090909",
    "statusBar.background": "#090909",
    "titleBar.activeBackground": "#090909",
    "titleBar.inactiveBackground": "#090909",
    "panelTitle.activeBorder": "#ff0000",
    "debugToolBar.background": "#090909",
    "menu.background": "#090909",
    "editorGroupHeader.tabsBackground": "#090909",
    "breadcrumb.background": "#090909",
    "editorGutter.background": "#090909"
  },
  "json.validate.enable": false,
  "json.schemaDownload.enable": true,
  "editor.fontFamily": "CaskaydiaCove Nerd Font",
  "editor.inlayHints.fontFamily": "CaskaydiaCove NF",
  "editor.minimap.enabled": false,
  "editor.fontSize": 15,
  "git.autofetch": true,
  "files.autoSave": "afterDelay",
  "yaml.customTags": [
    "!And",
    "!And sequence",
    "!If",
    "!If sequence",
    "!Not",
    "!Not sequence",
    "!Equals",
    "!Equals sequence",
    "!Or",
    "!Or sequence",
    "!FindInMap",
    "!FindInMap sequence",
    "!Base64",
    "!Join",
    "!Join sequence",
    "!Cidr",
    "!Ref",
    "!Sub",
    "!Sub sequence",
    "!GetAtt",
    "!GetAZs",
    "!ImportValue",
    "!ImportValue sequence",
    "!Select",
    "!Select sequence",
    "!Split",
    "!Split sequence"
  ],
  "[dart]": {
    "editor.formatOnSave": true,
    "editor.formatOnType": true,
    "editor.bracketPairColorization.enabled": true,
    "editor.codeActionsOnSave": {
      "dart.previewFlutterUiGuides": "explicit",
      "source.fixAll": "explicit"
    },
    "editor.stickyScroll.enabled": true,
    "editor.selectionHighlight": false,
    "editor.suggest.snippetsPreventQuickSuggestions": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": "off"
  },
  "redhat.telemetry.enabled": true,
  "explorer.copyRelativePathSeparator": "/",
  "go.useLanguageServer": true,
  "go.formatTool": "gofmt",
  "go.lintTool": "golangci-lint",
  "go.inferGopath": false,
  "go.buildOnSave": "workspace",
  "go.lintOnSave": "package",
  "go.vetOnSave": "package",
  "go.buildTags": "",
  "go.buildFlags": [],
  "go.lintFlags": [],
  "go.vetFlags": [],
  "go.coverOnSave": false,
  "go.useCodeSnippetsOnFunctionSuggest": false,
  "go.gocodeAutoBuild": false,
  "go.useLanguageServer": true,
  "go.alternateTools": {
    "go-langserver": "gopls"
  },
  "[go]": {
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
      "source.organizeImports": "explicit",
      "go.languageServerExperimentalFeatures": {
        "format": true,
        "autoComplete": true
      }
    }
  },
  "go.toolsManagement.autoUpdate": true,
  "gopls": {
    "ui.semanticTokens": true,
    "ui.completion.usePlaceholders": true
  },
  "dart.previewFlutterUiGuidesCustomTracking": true,
  "terminal.integrated.fontFamily": "CaskaydiaCove Nerd Font",
  "editor.formatOnSave": true,
  "editor.cursorStyle": "underline",
  "editor.cursorBlinking": "phase",
  "editor.renderLineHighlight": "none",
  "editor.bracketPairColorization.enabled": true,
  "editor.formatOnType": true,
  "terminal.integrated.cursorStyle": "underline",
  "terminal.integrated.cursorWidth": 3,
  "terminal.integrated.cursorBlinking": true,
  "editor.cursorSmoothCaretAnimation": "on",
  "security.workspace.trust.untrustedFiles": "open",
  "editor.unicodeHighlight.nonBasicASCII": false,
  "editor.wordWrap": "on",
  "markdownlint.ignore": [
    "MD010"
  ],
  "markdownlint.config": {
    "no-hard-tabs": false,
    "no-duplicate-heading": false,
    "no-duplicate-header": false,
    "ol-prefix": false
  },
  "workbench.iconTheme": "material-icon-theme",
  "editor.codeLensFontFamily": "CaskaydiaCove NF",
  "[markdown]": {
    "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
  },
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  }
}

Golang

{
    "workbench.iconTheme": "material-icon-theme",
    "workbench.colorCustomizations": {
        "editor.background": "#090909",
        "sideBar.background": "#090909",
        "terminal.background": "#090909",
        "activityBar.background": "#090909",
        "activityBar.border": "#090909",
        "activityBar.activeBorder": "#090909",
        "dropdown.background": "#090909",
        "dropdown.listBackground": "#090909",
        "dropdown.border": "#090909",
        "panel.background": "#090909",
        "statusBar.background": "#090909",
        "titleBar.activeBackground": "#090909",
        "titleBar.inactiveBackground": "#090909",
        "panelTitle.activeBorder": "#0213fd",
        "debugToolBar.background": "#090909",
        "menu.background": "#090909",
        "editorGroupHeader.tabsBackground": "#090909",
        "breadcrumb.background": "#090909",
        "editorGutter.background": "#090909"
    },
    "editor.fontFamily": "CaskaydiaCove Nerd Font",
    "editor.minimap.enabled": false,
    "explorer.copyRelativePathSeparator": "/",
    "go.useLanguageServer": true,
    "go.formatTool": "gofmt",
    "go.lintTool": "golangci-lint",
    "go.inferGopath": false,
    "go.lintOnSave": "package",
    "go.vetOnSave": "package",
    "go.coverOnSave": false,
    "go.alternateTools": {
        "go.buildOnSave": "workspace",
        "go.useCodeSnippetsOnFunctionSuggest": true,
        "go.gocodeAutoBuild": false,
        "go.useLanguageServer": true,
        "go-langserver": "gopls"
    },
    "[go]": {
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": "explicit",
            "source.fixAll": "explicit"
        }
    },
    "go.toolsManagement.autoUpdate": true,
    "gopls": {
        "ui.semanticTokens": true,
        "ui.completion.usePlaceholders": true
    },
    "editor.formatOnSave": true,
    "git.enableSmartCommit": true,
    "[markdown]": {
        "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
    },
    "editor.inlayHints.fontFamily": "CaskaydiaCove Nerd Font",
    "files.autoSave": "afterDelay",
    "editor.renderLineHighlight": "none",
    "editor.codeLensFontFamily": "CaskaydiaCove Nerd Font",
    "editor.cursorSmoothCaretAnimation": "on",
    "editor.cursorBlinking": "phase",
    "terminal.integrated.fontFamily": "CaskaydiaCove Nerd Font",
    "git.autofetch": true,
    "workbench.colorTheme": "Tokyo Night",
    "markdownlint.config": {
        "no-hard-tabs": false,
        "no-duplicate-header": false,
        "no-duplicate-heading": false,
        "ol-prefix": false,
        "no-inline-html": false
    },
   
    "editor.cursorStyle": "underline",
    "editor.fontSize": 14.5,
    "[jsonc]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    "debug.console.fontFamily": "CaskaydiaCove Nerd Font",
    "glassit.alpha": 240,
}

Flutter & Dart

{

  "workbench.iconTheme": "material-icon-theme",
  "workbench.colorTheme": "Tokyo Night",
  "workbench.colorCustomizations": {
    "editor.background": "#090909",
    "sideBar.background": "#090909",
    "terminal.background": "#090909",
    "activityBar.background": "#090909",
    "activityBar.border": "#090909",
    "activityBar.activeBorder": "#090909",
    "dropdown.background": "#090909",
    "dropdown.listBackground": "#090909",
    "dropdown.border": "#090909",
    "panel.background": "#090909",
    "statusBar.background": "#090909",
    "titleBar.activeBackground": "#090909",
    "titleBar.inactiveBackground": "#090909",
    "panelTitle.activeBorder": "#ff0000",
    "debugToolBar.background": "#090909",
    "menu.background": "#090909",
    "editorGroupHeader.tabsBackground": "#090909",
    "breadcrumb.background": "#090909",
    "editorGutter.background": "#090909"
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  }
  "[markdown]": {
    "editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
  },
  "json.validate.enable": false,
  "editor.codeLensFontFamily": "CaskaydiaCove NF",
  "json.schemaDownload.enable": true,
  "editor.fontFamily": "CaskaydiaCove Nerd Font",
  "editor.inlayHints.fontFamily": "CaskaydiaCove NF",
  "editor.minimap.enabled": false,
  "editor.fontSize": 15,
  "git.autofetch": true,
  "yaml.customTags": [
    "!And",
    "!And sequence",
    "!If",
    "!If sequence",
    "!Not",
    "!Not sequence",
    "!Equals",
    "!Equals sequence",
    "!Or",
    "!Or sequence",
    "!FindInMap",
    "!FindInMap sequence",
    "!Base64",
    "!Join",
    "!Join sequence",
    "!Cidr",
    "!Ref",
    "!Sub",
    "!Sub sequence",
    "!GetAtt",
    "!GetAZs",
    "!ImportValue",
    "!ImportValue sequence",
    "!Select",
    "!Select sequence",
    "!Split",
    "!Split sequence"
  ],
  "files.autoSave": "afterDelay",
    "debug.openDebug": "openOnDebugBreak",
    "debug.internalConsoleOptions": "openOnSessionStart",
    "[dart]": {

      "editor.formatOnSave": true,
      "editor.formatOnType": true,
      "editor.bracketPairColorization.enabled": true,
      "editor.codeActionsOnSave": {
        "dart.previewFlutterUiGuides": "explicit",
        "source.fixAll": "explicit"
      },
      "editor.stickyScroll.enabled": true,
      "editor.selectionHighlight": false,
      "editor.suggest.snippetsPreventQuickSuggestions": false,
      "editor.suggestSelection": "first",
      "editor.tabCompletion": "onlySnippets",
      "editor.wordBasedSuggestions": "off"
    },
    "editor.minimap.enabled": false,
    "dart.previewFlutterUiGuides": true,
    "dart.previewFlutterUiGuidesCustomTracking": true,
    "explorer.fileNesting.patterns": {
      "*.dart": "${capture}.g.dart, ${capture}.freezed.dart"
  },
  "explorer.fileNesting.enabled": true,
  "explorer.fileNesting.expand": false,
  "dart.previewFlutterUiGuidesCustomTracking": true,
  "terminal.integrated.fontFamily": "CaskaydiaCove Nerd Font",
  "editor.formatOnSave": true,
  "editor.cursorStyle": "underline",
  "editor.cursorBlinking": "phase",
  "editor.bracketPairColorization.enabled": true,
  "editor.formatOnType": true,
  "terminal.integrated.cursorStyle": "underline",
  "terminal.integrated.cursorWidth": 3,
  "terminal.integrated.cursorBlinking": true,
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.unicodeHighlight.nonBasicASCII": false,
  "editor.wordWrap": "on",
  "markdownlint.ignore": [
    "MD010"
  ],

  "markdownlint.config": {
    "no-hard-tabs": false,
    "no-duplicate-heading": false,
    "no-duplicate-header": false,
    "ol-prefix": false
  },
  "editor.cursorStyle": "underline",
  "editor.fontSize": 14.5,
  "editor.cursorSmoothCaretAnimation": "on",
    "editor.cursorBlinking": "phase",
    "editor.renderLineHighlight": "none",
}

Python

  • Coming Soon

Lua

  • Coming Soon

C

  • Coming Soon

Web

{
  "workbench.iconTheme": "material-icon-theme",
  "workbench.colorTheme": "Tokyo Night",
  "workbench.colorCustomizations": {
    "editor.background": "#090909",
    "sideBar.background": "#090909",
    "terminal.background": "#090909",
    "activityBar.background": "#090909",
    "activityBar.border": "#090909",
    "activityBar.activeBorder": "#090909",
    "dropdown.background": "#090909",
    "dropdown.listBackground": "#090909",
    "dropdown.border": "#090909",
    "panel.background": "#090909",
    "statusBar.background": "#090909",
    "titleBar.activeBackground": "#090909",
    "titleBar.inactiveBackground": "#090909",
    "panelTitle.activeBorder": "#ff0000",
    "debugToolBar.background": "#090909",
    "menu.background": "#090909",
    "editorGroupHeader.tabsBackground": "#090909",
    "breadcrumb.background": "#090909",
    "editorGutter.background": "#090909"
  },
  "editor.fontFamily": "FiraCode Nerd Font",
  "editor.fontSize": 15,
  "terminal.integrated.fontFamily": "FiraCode Nerd Font",
  "terminal.integrated.fontSize": 13,
  "editor.codeLensFontSize": 10,
  "editor.codeLensFontFamily": "CaskaydiaCove NF",
  "editor.minimap.enabled": false,
  "json.validate.enable": false,
  "json.schemaDownload.enable": true,
  "editor.fontFamily": "FiraCode Nerd Font",
  "editor.inlayHints.fontFamily": "FiraCode Nerd Font",
  "editor.minimap.enabled": false,
  "files.autoSave": "afterDelay",
  "yaml.customTags": [
    "!And",
    "!And sequence",
    "!If",
    "!If sequence",
    "!Not",
    "!Not sequence",
    "!Equals",
    "!Equals sequence",
    "!Or",
    "!Or sequence",
    "!FindInMap",
    "!FindInMap sequence",
    "!Base64",
    "!Join",
    "!Join sequence",
    "!Cidr",
    "!Ref",
    "!Sub",
    "!Sub sequence",
    "!GetAtt",
    "!GetAZs",
    "!ImportValue",
    "!ImportValue sequence",
    "!Select",
    "!Select sequence",
    "!Split",
    "!Split sequence"
  ],
  "editor.formatOnSave": true,
  "editor.cursorStyle": "underline",
  "editor.cursorBlinking": "phase",
  "editor.renderLineHighlight": "none",
  "editor.bracketPairColorization.enabled": true,
  "editor.formatOnType": true,
  "terminal.integrated.cursorStyle": "underline",
  "terminal.integrated.cursorWidth": 3,
  "terminal.integrated.cursorBlinking": true,
  "editor.cursorSmoothCaretAnimation": "on",
  "editor.unicodeHighlight.nonBasicASCII": false,
  "editor.wordWrap": "on",
  "css.format.spaceAroundSelectorSeparator": true,
  "typescript.enablePromptUseWorkspaceTsdk": true,
  "files.insertFinalNewline": true,
  "npm.packageManager": "pnpm",
  "editor.insertSpaces": false,
  "files.trimTrailingWhitespace": true,
  "markdownlint.ignore": [
    "MD010"
  ],
  "markdownlint.config": {
    "no-hard-tabs": false,
    "no-duplicate-heading": false,
    "no-duplicate-header": false,
    "ol-prefix": false
  },
  "[markdown]": {
    "editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
    "editor.formatOnSave": true
  },
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features",
    "editor.formatOnSave": true
  },
  "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features",
    "editor.formatOnSave": true
  },
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features",
    "editor.formatOnSave": true
  },
  "[json]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode",
    "editor.formatOnSave": true
  }
}

PowerShell

Import-Module -Name Terminal-Icons
oh-my-posh init pwsh --config 'C:/Users/ayoubzulfiqar/AppData/Local/Programs/oh-my-posh/themes/tokyo.omp.json' | Invoke-Expression
Import-Module PSReadLine
Set-PSReadLineOption -PredictionViewStyle ListView

Oh-My-Posh

  • tokyo.omp.json
{
  "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
  "blocks": [
    {
      "alignment": "left",
      "segments": [
        {
          "foreground": "#7eb8da",
          "style": "plain",
          "template": "\u250f[<#ffffff>\ueb99</> {{ .UserName }} from <#ffffff>\uf108</> {{ .HostName }}]",
          "type": "session"
        },
        {
          "foreground": "#be9ddf",
          "properties": {
            "style": "dallas",
            "threshold": 0
          },
          "style": "diamond",
          "template": "[<#ffffff>\uf252</> {{ .FormattedMs }}s]",
          "type": "executiontime"
        },
        {
          "properties": {
            "root_icon": "\uf292"
          },
          "style": "diamond",
          "template": "\uf0e7",
          "type": "root"
        },
        {
          "foreground": "#be9ddf",
          "style": "diamond",
          "template": "[<#ffffff>\ue266</> RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1073741824.0) }}/{{ (div .PhysicalTotalMemory 1073741824.0) }}GB]",
          "type": "sysinfo"
        },
        {
          "foreground": "#7eb8da",
          "properties": {
            "time_format": "Monday at 3:04:05 PM"
          },
          "style": "diamond",
          "template": "[<#ffffff>\uf073</> {{ .CurrentDate | date .Format }}]",
          "type": "time"
        },
        {
          "foreground": "#ffa5d8",
          "properties": {
            "fetch_stash_count": true,
            "fetch_status": true,
            "fetch_upstream_icon": true
          },
          "style": "plain",
          "template": "[<#ffffff>{{ .UpstreamIcon }}</>{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} <#ffffff>\uf044</> {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} <#ffffff>\uf046</> {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} <#ffffff>\ueb4b</> {{ .StashCount }}{{ end }}]",
          "type": "git"
        },
        {
          "foreground": "#ffa5d8",
          "style": "plain",
          "template": "[{{ .Profile }}{{if .Region}}@{{ .Region }}{{ end }}]",
          "type": "aws"
        },
        {
          "foreground": "#ffa5d8",
          "style": "plain",
          "template": "[{{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}]",
          "type": "kubectl"
        },
        {
          "foreground": "#ffa5d8",
          "style": "plain",
          "template": "[\uf0e7]",
          "type": "root"
        },
        {
          "foreground": "#ffa5d8",
          "style": "powerline",
          "template": "[<#ffffff>\uea6c</> Error, check your command]",
          "type": "status"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "foreground": "#7eb8da",
          "properties": {
            "style": "full"
          },
          "style": "plain",
          "template": "\u2516[<#98bfad>{{ .Path }}</>]",
          "type": "path"
        }
      ],
      "type": "prompt"
    },
    {
      "alignment": "left",
      "newline": true,
      "segments": [
        {
          "foreground": "#7eb8da",
          "style": "plain",
          "template": "\u2514\u2500Δ",
          "type": "text"
        }
      ],
      "type": "prompt"
    },
    {
      "type": "dart",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#ffffff",
      "background": "#06A4CE",
      "template": "  {{ .Full }} "
    },
    {
      "type": "docker",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#000000",
      "background": "#0B59E7",
      "template": "  {{ .Context }} "
    },
    {
      "type": "flutter",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#ffffff",
      "background": "#06A4CE",
      "template": "  {{ .Full }} "
    },
    {
      "type": "git",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#193549",
      "background": "#ffeb3b",
      "background_templates": [
        "{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}",
        "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}",
        "{{ if gt .Ahead 0 }}#B388FF{{ end }}",
        "{{ if gt .Behind 0 }}#B388FB{{ end }}"
      ],
      "template": "{{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }}",
      "properties": {
        "fetch_status": true,
        "fetch_upstream_icon": true,
        "untracked_modes": {
          "/Users/user/Projects/oh-my-posh/": "no"
        }
      }
    },
    {
      "type": "go",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#ffffff",
      "background": "#7FD5EA",
      "template": " ‭ﳑ {{ .Full }} "
    },
    {
      "type": "lua",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "white",
      "background": "blue",
      "template": "  {{ .Full }} "
    },
    {
      "type": "node",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#ffffff",
      "background": "#6CA35E",
      "template": "  {{ .Full }} "
    },
    {
      "type": "npm",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#193549",
      "background": "#ffeb3b",
      "template": " {{ .Full }} "
    },
    {
      "type": "path",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#ffffff",
      "background": "#61AFEF",
      "properties": {
        "style": "folder",
        "mapped_locations": {
          "C:\\temp": ""
        }
      }
    },
    {
      "type": "shell",
      "style": "powerline",
      "powerline_symbol": "",
      "foreground": "#ffffff",
      "background": "#0077c2",
      "properties": {
        "mapped_shell_names": {
          "pwsh": "PS"
        }
      }
    },
    {
      "type": "status",
      "style": "diamond",
      "foreground": "#ffffff",
      "background": "#00897b",
      "background_templates": [
        "{{ if .Error }}#e91e63{{ end }}"
      ],
      "trailing_diamond": "",
      "template": "<#193549></>  ",
      "properties": {
        "always_enabled": true
      }
    },
    {
      "type": "text",
      "style": "plain",
      "foreground": "#E06C75",
      "template": ""
    },
  ],
  "final_space": true,
  "version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment