Skip to content

Commit 435e7c3

Browse files
committed
vsocde: add config files
This makes it easy to get up and running with vscode.
1 parent 7db2fd5 commit 435e7c3

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
examples/notcommit/
2-
.vscode/
32

43
.idea/
54
.vs/

.vscode/extensions.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"ms-python.python",
7+
"ms-python.black-formatter",
8+
"ms-python.isort",
9+
"ms-python.flake8"
10+
],
11+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
12+
"unwantedRecommendations": []
13+
}

.vscode/settings.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"[python]": {
3+
"editor.defaultFormatter": "ms-python.black-formatter",
4+
"editor.formatOnSave": true,
5+
"editor.codeActionsOnSave": {
6+
"source.organizeImports": true
7+
},
8+
},
9+
"black-formatter.importStrategy": "fromEnvironment",
10+
"isort.importStrategy": "fromEnvironment",
11+
"isort.args":["--profile", "black"],
12+
"flake8.importStrategy": "fromEnvironment"
13+
}

0 commit comments

Comments
 (0)