This repository contains a DevContainer configuration for C, Python, and Fortran development. The DevContainer is built using a custom Dockerfile based on Ubuntu 22.04 LTS and includes necessary development tools and environments.
- C/C++ Development: Includes Clang, GCC, GDB, CMake, and Ninja-build.
- Python Development: Python 3.11, pip, and virtual environment support.
- Fortran Development: Intel Fortran compiler from oneAPI and Fortls, Findent, Fprettify for Fortran language support.
- Enhanced Terminal: Zsh with Oh My Zsh, Powerline fonts, and
arrowtheme.
ms-vscode.cpptools: C/C++ IntelliSense, debugging, and code browsing.fortran-lang.linter-gfortran: Fortran language support.ms-python.python: Python IntelliSense and Jupyter notebook support.twxs.cmake: CMake language support.ms-vscode.cmake-tools: CMake project integration.
- Docker: Install Docker
- Visual Studio Code: Install VS Code
- Remote - Containers extension: Install Remote - Containers
-
Clone the Repository:
git clone https://github.com/jamestjat/cx_fort_py_devcontainer.git cd cx_fort_py_devcontainer -
Open in VS Code:
Open the cloned repository in VS Code.
code . -
Reopen in Container:
Press
F1and selectRemote-Containers: Reopen in Container. -
Start Coding:
The container will build and open in VS Code. You can now start developing in C, Python, and Fortran with all the tools configured and ready to use.
To add more VS Code extensions, update the devcontainer.json file:
"customizations": {
"vscode": {
"extensions": [
// Existing extensions
"ms-vscode.cpptools",
"fortran-lang.linter-gfortran",
"ms-python.python",
"twxs.cmake",
"ms-vscode.cmake-tools",
// Add new extensions here
"extension.id"
]
}
}