Skip to content

Instantly share code, notes, and snippets.

@arifikhsan
Last active June 13, 2020 10:01
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 arifikhsan/50feb156bbb33423ca6051105b00eaa1 to your computer and use it in GitHub Desktop.
Save arifikhsan/50feb156bbb33423ca6051105b00eaa1 to your computer and use it in GitHub Desktop.
my vscode settings
{
// Place your snippets for dart 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"
// }
"Part statement": {
"prefix": "pts",
"body": [
"part '${TM_FILENAME_BASE}.g.dart';",
],
"description": "Creates a filled-in part statement"
},
"Part 'Freezed' statement": {
"prefix": "ptf",
"body": [
"part '${TM_FILENAME_BASE}.freezed.dart';",
],
"description": "Creates a filled-in freezed part statement"
},
"Freezed Data Class": {
"prefix": "fdataclass",
"body": [
"@freezed",
"abstract class ${1:DataClass} with _$${1:DataClass}{",
" const factory ${1:DataClass}(${2}) = _${1:DataClass};",
"}"
],
"description": "Freezed Data Class"
},
"Freezed Union": {
"prefix": "funion",
"body": [
"@freezed",
"abstract class ${1:Union} with _$${1:Union}{",
" const factory ${1:Union}.${2}(${4}) = ${3};",
"}"
],
"description": "Freezed Union"
},
"Freezed Union Case": {
"prefix": "funioncase",
"body": [
"const factory ${1:Union}.${2}(${4}) = ${3};"
],
"description": "Freezed Union Case"
},
"triple_a_test": {
"prefix": "aaa",
"body": [
"test(",
"\t'should $1',",
"\t() async {",
"\t\t// arrange",
"\t\t$2",
"\t\t// act",
"\t\t$3",
"\t\t// assert",
"\t\t$4",
"\t},",
");"
],
"description": "Flutter test arrange act assert"
}
}
{
"workbench.iconTheme": "material-icon-theme",
"material-icon-theme.saturation": 1,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"terminal.integrated.rendererType": "dom",
"editor.minimap.enabled": false,
"workbench.colorTheme": "Community Material Theme",
"workbench.colorCustomizations": {},
"materialTheme.accent": "Remove accents",
"terminal.integrated.cursorStyle": "line",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"breadcrumbs.enabled": false,
"git.enableSmartCommit": true,
"explorer.confirmDelete": false,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"material-icon-theme.folders.associations": {
"application": "app",
"domain": "core",
"infrastructure": "controller",
"presentation": "views",
"note": "content",
"feature": "cluster",
"features": "cluster",
"widget": "theme",
"bloc": "functions",
"datasource": "src",
"test_driver": "test",
"failure": "error",
"exception": "error",
"ui": "theme",
"entity": "prisma",
"usecase": "expo",
"repository": "fastlane",
"injector": "tools",
"network": "global"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"explorer.compactFolders": false,
"window.zoomLevel": 0,
"explorer.confirmDragAndDrop": false,
"git.confirmSync": false,
"telemetry.enableTelemetry": false,
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"dart.previewFlutterUiGuides": true,
"dart.previewFlutterUiGuidesCustomTracking": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"extensions.ignoreRecommendations": false,
"sqltools.useNodeRuntime": true,
"editor.formatOnSave": true,
"files.insertFinalNewline": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment