Skip to content

Commit 0c04f96

Browse files
authored
feat(vscode): Example of possible Vscode config control (#29)
* feat(vscode): Try and protect repo from local editor settings changes * feat(vscode): Add comments and remove emojis from conventional commits
1 parent 011d18b commit 0c04f96

5 files changed

+62
-35
lines changed

.gitignore

+7-1
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,10 @@ $RECYCLE.BIN/
7070
*.msp
7171

7272
# Windows shortcuts
73-
*.lnk
73+
*.lnk
74+
75+
# .vscode ignore local changes to config, but not the recommended settings/launch/extensions
76+
/.vscode/*
77+
!/.vscode/extensions.json
78+
!/.vscode/launch.recommended.json
79+
!/.vscode/settings.recommended.json

.vscode/extensions.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
// These extensions are recommended for developing with the repository.
3+
"recommendations": [
4+
"vivaxy.vscode-conventional-commits",
5+
"streetsidesoftware.code-spell-checker",
6+
"DavidAnson.vscode-markdownlint",
7+
"Dart-Code.dart-code",
8+
"Dart-Code.flutter"
9+
]
10+
}

.vscode/launch.json .vscode/launch.recommended.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
// Recommended `launch.json` configuration
23
// Use IntelliSense to learn about possible attributes.
34
// Hover to view descriptions of existing attributes.
45
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

.vscode/settings.json

-34
This file was deleted.

.vscode/settings.recommended.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
// Recommended `settings.json` configuration
3+
"editor.formatOnSave": true,
4+
"editor.codeActionsOnSave": {
5+
"source.organizeImports": true,
6+
"source.sortMembers": true,
7+
"source.fixAll": true
8+
},
9+
"files.autoSave": "afterDelay",
10+
"editor.formatOnType": true,
11+
"editor.rulers": [
12+
100
13+
],
14+
"editor.tabSize": 4,
15+
"debug.openDebug": "openOnDebugBreak",
16+
"debug.internalConsoleOptions": "openOnSessionStart",
17+
"dart.debugSdkLibraries": false,
18+
"[dart]": {
19+
"editor.formatOnSave": true,
20+
"editor.formatOnType": true,
21+
"editor.rulers": [
22+
80
23+
],
24+
"editor.codeActionsOnSave": {
25+
"source.fixAll": true,
26+
"source.organizeImports": true
27+
},
28+
"editor.selectionHighlight": false,
29+
"editor.suggestSelection": "first",
30+
"editor.wordBasedSuggestions": false,
31+
"editor.tabCompletion": "onlySnippets",
32+
"editor.defaultFormatter": "Dart-Code.dart-code"
33+
},
34+
"window.title": "${dirty}${activeEditorShort}",
35+
"conventionalCommits.scopes": [
36+
"vscode",
37+
"athena",
38+
"frontend",
39+
"frontend-pkg",
40+
"backend",
41+
"backend-lib"
42+
],
43+
"conventionalCommits.gitmoji": false
44+
}

0 commit comments

Comments
 (0)