PointMLP/.vscode/settings.json
2023-08-03 16:38:02 +02:00

68 lines
2.1 KiB
JSON

{
// nice editor settings
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
"source.fixAll": false,
},
"editor.rulers": [
120
],
// editorconfig redundancy
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
// hidde unimportant files/folders
"files.exclude": {
// defaults
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
// annoying
"**/__pycache__": true,
"**/.mypy_cache": true,
"**/.ruff_cache": true,
"**/*.tmp": true,
},
// cpp /clang / cmake settings
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
"C_Cpp.intelliSenseEngine": "disabled",
"C_Cpp.intelliSenseEngineFallback": "enabled",
"C_Cpp.clang_format_path": "/softs/compiler/llvm/latest/bin/clang-format",
"C_Cpp.codeAnalysis.clangTidy.enabled": true,
"C_Cpp.codeAnalysis.clangTidy.path": "/softs/compiler/llvm/latest/bin/clang-tidy",
"clangd.path": "/softs/compiler/llvm/latest/bin/clangd",
"cmake.cmakePath": "/softs/cmake/latest/bin/cmake",
"cmake.preferredGenerators": [
"Ninja",
"Unix Makefiles"
],
"cmakeFormat.exePath": "/softs/conda/auto/envs/cmake-format/bin/cmake-format",
"cmake.languageSupport.dotnetPath": "/softs/conda/auto/envs/dotnet/lib/dotnet/dotnet",
// python settings
"python.analysis.typeCheckingMode": "basic", // get ready to be annoyed
"python.defaultInterpreterPath": "/local_scratch/lfainsin/.conda/envs/pointmlp/bin/python",
"python.linting.enabled": true,
"python.linting.lintOnSave": true,
"python.linting.mypyEnabled": true,
// fixes for broken auto-activation on rosetta
"python.terminal.activateEnvironment": false,
"terminal.integrated.profiles.linux": {
"python": {
"path": "bash",
"icon": "rocket",
"args": [
"--init-file",
".vscode/setup.sh"
],
}
},
"terminal.integrated.env.linux": {
"PYTHONPATH": "${workspaceFolder}/src/",
"SLURM_JOB_ID": null, // unset or else lightning_logs v_num uses it
},
}