Skip to content

Instantly share code, notes, and snippets.

@joseluisq
Created June 20, 2022 10:11
Show Gist options
  • Save joseluisq/75a266c23bbdfabc47acee5e0d9d588f to your computer and use it in GitHub Desktop.
Save joseluisq/75a266c23bbdfabc47acee5e0d9d588f to your computer and use it in GitHub Desktop.
My custom VSCode settings for Mac
{
// ---- Editor ----
"editor.fontFamily": "Fira Code",
"editor.fontSize": 12,
"editor.fontLigatures": true,
"editor.detectIndentation": true,
"editor.wordWrap": "on",
"editor.formatOnSave": false,
"editor.rulers": [
132
],
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.inlayHints.enabled": "off",
"editor.guides.indentation": true,
// ---- Workbench ----
"workbench.colorTheme": "Atom One Dark",
"workbench.iconTheme": "vs-seti",
"workbench.editor.highlightModifiedTabs": true,
"workbench.tree.indent": 8,
"workbench.tree.renderIndentGuides": "none",
"workbench.colorCustomizations": {
"tab.activeBackground": "#282c34",
"activityBar.background": "#282c34",
"editorIndentGuide.background": "#313640",
"editorIndentGuide.activeBackground": "#4e5462",
// "sideBar.background": "#282c34",
},
// ---- Window ----
"window.zoomLevel": 0.25,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
// ---- Explorer ----
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
// ---- Breadcrumbs ----
"breadcrumbs.enabled": true,
// ---- Terminal ----
// ---- Problems ----
"problems.showCurrentInStatus": true,
// ---- Files ----
"files.associations": {
"*.gql": "graphql",
"*.conf": "gitconfig",
"Dockerfile_prod": "dockerfile",
"Dockerfile_dev": "dockerfile",
".emacs": "lisp",
"*.service": "gitconfig"
},
// ---- Language specifics ----
"[yaml]": {
"editor.formatOnPaste": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
"editor.quickSuggestions": {
"other": true,
"comments": false,
"strings": true
}
},
"[c]": {
"editor.tabSize": 4,
"editor.insertSpaces": false,
},
"[cpp]": {
"editor.tabSize": 4,
"editor.insertSpaces": false,
},
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.rulers": [
80
],
"editor.selectionHighlight": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggestSelection": "first",
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": false
},
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true
},
"[go]": {
"editor.tabSize": 4,
"editor.insertSpaces": true,
},
"[makefile]": {
"editor.tabSize": 4,
"editor.insertSpaces": false,
},
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
},
"[markdown]": {
"editor.formatOnSave": false
},
"[php]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[typescriptreact]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[javascript]": {
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
},
"[ruby]": {
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnSave": true,
},
"eslint.format.enable": true,
"eslint.enable": true,
// ---- JSON ----
"json.maxItemsComputed": 8000,
// ---- Security ----
"security.workspace.trust.untrustedFiles": "open",
// ---- Extensions ----
// Ruby setup
"ruby.useBundler": false, //run non-lint commands with bundle exec
"ruby.useLanguageServer": false, // use the internal language server (see below)
"ruby.intellisense": "rubyLocate",
"ruby.codeCompletion": "rcodetools",
"ruby.lint": {
"rubocop": {
"useBundler": false // enable rubocop via bundler
},
"reek": {
"useBundler": false // enable reek via bundler
}
},
"ruby.format": "prettier",// use rubocop for formatting,
// ---- Go ----
"go.useLanguageServer": true,
"go.toolsManagement.autoUpdate": true,
// ---- Rust Analyzer ----
"rust-analyzer.inlayHints.maxLength": 18,
"rust-analyzer.checkOnSave.command": "clippy",
"html.format.enable": false,
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"XXX",
"[ ]",
"[x]"
],
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS)",
"redhat.telemetry.enabled": true,
}
code --install-extension akamud.vscode-theme-onedark
code --install-extension connorshea.vscode-ruby-test-adapter
code --install-extension dbaeumer.vscode-eslint
code --install-extension eg2.vscode-npm-script
code --install-extension esbenp.prettier-vscode
code --install-extension golang.go
code --install-extension Gruntfuggly.todo-tree
code --install-extension hbenl.vscode-test-explorer
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-kubernetes-tools.vscode-kubernetes-tools
code --install-extension ms-vscode-remote.remote-containers
code --install-extension ms-vscode.cpptools
code --install-extension ms-vscode.test-adapter-converter
code --install-extension ms-vsliveshare.vsliveshare
code --install-extension rebornix.ruby
code --install-extension redhat.vscode-yaml
code --install-extension rust-lang.rust-analyzer
code --install-extension wayou.vscode-todo-highlight
code --install-extension wingrunr21.vscode-ruby
code --install-extension yzhang.markdown-all-in-one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment