Skip to content

Instantly share code, notes, and snippets.

@AlphaLawless
Last active August 3, 2022 13:53
Show Gist options
  • Save AlphaLawless/d17af4f1fb18611b8494146062a921b1 to your computer and use it in GitHub Desktop.
Save AlphaLawless/d17af4f1fb18611b8494146062a921b1 to your computer and use it in GitHub Desktop.
My VSCode Settings to Dart
{
// Emmet
"emmet.syntaxProfiles" : {
"javascript" : "jsx"
},
"emmet.includeLanguages" : {
"javascript" : "javascriptreact"
},
// Editor
"editor.minimap.enabled": false,
"editor.fontLigatures" : true,
"editor.rulers": [
80,
120
],
"editor.tabSize" : 2,
"workbench.startupEditor" : "newUntitledFile",
"workbench.colorTheme": "One Dark Pro Darker",
"workbench.iconTheme": "material-icon-theme",
"workbench.editor.enablePreviewFromQuickOpen": true,
"workbench.editor.enablePreview": false,
"workbench.editor.untitled.hint": "hidden",
// Window
"window.restoreWindows": "none",
// Fonts
"editor.fontFamily" : "JetBrains Mono",
// Folders
"explorer.compactFolders": false,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/node_modules": true,
"**/__pycache__": true,
},
// Formate
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
// Prettier
"editor.defaultFormatter": "esbenp.prettier-vscode",
// Material Theme
"material-icon-theme.activeIconPack": "nest",
"material-icon-theme.folders.associations": {
"infra": "app",
"entities": "class",
"domain": "class",
"schemas": "class",
"typeorm": "database",
"repositories": "mappings",
"http": "container",
"migrations": "tools",
"modules": "components",
"implementations": "core",
"dtos": "typescript",
"fakes": "mock",
"websockets": "pipe",
"protos": "pipe",
"grpc": "pipe",
"providers": "include",
"subscribers": "messages",
"useCases": "controller",
"kafka": "scripts",
"mappers": "meta",
"_shared": "shared",
"eslint-config": "tools",
"kube": "kubernetes"
},
"material-icon-theme.files.associations": {
"ormconfig.json": "database",
"tsconfig.json": "tune",
"*.webpack.js": "webpack"
},
// Terminal
"terminal.integrated.automationProfile.osx": {
"path": "/usr/bin/zsh"
},
"terminal.integrated.env.osx" : {
"FIG_NEW_SESSION": "1"
},
"typescript.suggest.autoImports" : true,
"telemetry.telemetryLevel": "off",
"window.zoomLevel": 1,
// Flutter
"dart.flutterSdkPath": "/home/alpha/.asdf/installs/flutter/2.10.5-stable",
// Causes the debug view to automatically appear when a breakpoint is hit. This
// setting is global and not configurable per-language.
"debug.openDebug": "openOnDebugBreak",
"[dart]": {
// Automatically format code on save and during typing of certain characters
// (like `;` and `}`).
"editor.formatOnSave": true,
"editor.formatOnType": true,
// Draw a guide line at 80 characters, where Dart's formatting will wrap code.
"editor.rulers": [80],
// Disables built-in highlighting of words that match your selection. Without
// this, all instances of the selected text will be highlighted, interfering
// with Dart's ability to highlight only exact references to the selected variable.
"editor.selectionHighlight": false,
// By default, VS Code prevents code completion from popping open when in
// "snippet mode" (editing placeholders in inserted code). Setting this option
// to `false` stops that and allows completion to open as normal, as if you
// weren't in a snippet placeholder.
"editor.suggest.snippetsPreventQuickSuggestions": false,
// By default, VS Code will pre-select the most recently used item from code
// completion. This is usually not the most relevant item.
//
// "first" will always select top item
// "recentlyUsedByPrefix" will filter the recently used items based on the
// text immediately preceding where completion was invoked.
"editor.suggestSelection": "first",
// Allows pressing <TAB> to complete snippets such as `for` even when the
// completion list is not visible.
"editor.tabCompletion": "onlySnippets",
// By default, VS Code will populate code completion with words found in the
// current file when a language service does not provide its own completions.
// This results in code completion suggesting words when editing comments and
// strings. This setting will prevent that.
"editor.wordBasedSuggestions": false,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment