Setup for VS code projects like Arjan Codes
This is for a VS Code project template that includes a virtual environment and some recommended extensions. The template is for Python projects with a focus on data analysis, but can be adapted for other languages.
The .gitignore file is set up to ignore the virtual environment and other common files that should not be committed to the repository. It also includes common R files and folders which should not be pushed to publis repos.
Click "Use this template" - Create a new repository.
Give the repo a name and description. Create the repository.
git clone
Then in either the codespace or local machine, recreate the default .venv with uv sync. Add new packages with uv add .
Don't forget that if you are running tools from the command line which are installed in the .venv you need to activate the virtual environment first, e.g. on Windows:
.\.venv\Scripts\activate
on Linux or Mac:
source .venv/bin/activate
Some recommended extensions are included in .vscode/extensions.json.
Open the command palette (Ctrl+Shift+P) and type "Extensions: Install Extensions". Click the Funnel in the search extension bar and select "Recommended". This will show the extensions listed in .vscode/extensions.json. Click "Install All" to install them.