Skip to content

Commit

Permalink
Improve vscode settings templates (theroggy#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy authored Mar 30, 2023
1 parent 974c8bc commit 85cc64b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .vscode_templates/launch.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
// Ook breakpoints in onderliggende bibliotheken kunnen zetten
// Enable breakpoints in libraries used
"justMyCode": false,
// De workspace folder als pythonpath gebruiken zodat dat path niet overal
// in code toegevoegd moet worden.
// Add workspace folder to pythonpath
"env": {
"PYTHONPATH": "${workspaceFolder}"
}
Expand All @@ -27,7 +26,8 @@
"-t",
"x:/monitoring/markers/playground/_tasks_pierog"
],
"console": "integratedTerminal"
"console": "integratedTerminal",
"justMyCode": true
}
]
}
25 changes: 12 additions & 13 deletions .vscode_templates/settings.jsonc
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
{
// Deze settings kunnen/moeten normaal door iedereen overgenomen worden
// --------------------------------------------------------------------
// Conda environment activeren bij openen project
// These settings are in general directly applicable
// -------------------------------------------------
// Activate conda environment when project is opened
"python.terminal.activateEnvironment": true,
// Alle files checken op fouten
// Lint all files in workspace
"python.analysis.diagnosticMode": "workspace",
// Formatting toepassen bij opslaan
// Apply formatting on save
"editor.formatOnSave": true,
// Lijntje tonen op 88e lijn
// Visualize 88e line i editor
"editor.rulers": [
88
],
// Black als formatter gebruiken
// Use Black as formatter
"python.formatting.provider": "black",
// De workspace folder als pythonpath gebruiken zodat dat path niet overal
// in code toegevoegd moet worden.
// Use workspace directory as pythonpath
"terminal.integrated.env.windows": {
"PYTHONPATH": "${workspaceFolder}"
},
// Klassieke cmd gebruiken in terminal, powershell geeft issues met conda
// Use classing cmd in terminal, powershell gives issues with conda
"terminal.integrated.profiles.windows": {
"Command Prompt": {
"path": [
Expand All @@ -30,8 +29,8 @@
}
},
"terminal.integrated.defaultProfile.windows": "Command Prompt",
// Deze settings moeten soms aangepast worden aan je eigen situatie
// --------------------------------------------------------------------
// De conda environment die moet gebruikt worden
// These settings often need to be customized
// ------------------------------------------
// Conda environment to use
"python.defaultInterpreterPath": "%userprofile%\\Miniconda3\\envs\\cropclassdev\\python.exe"
}

0 comments on commit 85cc64b

Please sign in to comment.