Skip to content

Commit

Permalink
Update devcontainer file
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsvu committed Sep 14, 2023
1 parent 67f5bff commit e3c331e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 31 deletions.
10 changes: 4 additions & 6 deletions .devcontainer/cmake-kits.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
{
"name": "Default",
"compilers": {
"C": "/usr/bin/clang-10",
"CXX": "/usr/bin/clang++-10",
"Fortran": "/usr/bin/gfortran-9"
"C": "clang",
"CXX": "clang++",
"Fortran": "gfortran"
},
"cmakeSettings": {
"BUILD_SHARED_LIBS": "ON",
"BUILD_PYTHON_BINDINGS": "ON",
"MEMORY_ALLOCATOR": "SYSTEM",
"Python_EXECUTABLE": "/usr/bin/python3"
"MEMORY_ALLOCATOR": "SYSTEM"
},
"preferredGenerator": {
"name": "Unix Makefiles"
Expand Down
55 changes: 30 additions & 25 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,36 @@
"image": "sxscollaboration/spectre:dev",
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind,consistency=delegated",
"workspaceFolder": "${localWorkspaceFolder}",
"extensions": [
"eamodio.gitlens",
"foxundermoon.shell-format",
"github.vscode-pull-request-github",
"gruntfuggly.format-modified",
"ms-python.python",
"ms-vscode.cmake-tools",
"ms-vscode.cpptools",
"ms-vsliveshare.vsliveshare",
"redhat.vscode-yaml",
"stkb.rewrap",
"streetsidesoftware.code-spell-checker",
"twxs.cmake"
],
"settings": {
"cmake.buildDirectory": "${localWorkspaceFolder}/build-${buildKit}-${buildType}",
"editor.rulers": [
80
],
"editor.wordWrap": "off",
"editor.formatOnSave": false,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"python.pythonPath": "/usr/bin/python3",
"python.formatting.provider": "black"
"customizations": {
"vscode": {
"extensions": [
"eamodio.gitlens",
"foxundermoon.shell-format",
"github.vscode-pull-request-github",
"gruntfuggly.format-modified",
"ms-python.black-formatter",
"ms-python.python",
"ms-vscode.cmake-tools",
"ms-vscode.cpptools",
"ms-vsliveshare.vsliveshare",
"redhat.vscode-yaml",
"stkb.rewrap",
"streetsidesoftware.code-spell-checker",
"twxs.cmake"
],
"settings": {
"cmake.buildDirectory": "${localWorkspaceFolder}/build-${buildKit}-${buildType}",
"editor.rulers": [80],
"editor.wordWrap": "off",
"editor.formatOnSave": false,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"python.pythonPath": "/usr/bin/python3",
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
}
}
},
"remoteEnv": {
"SPECTRE_HOME": "${localWorkspaceFolder}"
Expand Down

0 comments on commit e3c331e

Please sign in to comment.