The VSCode Python Environment Manager extension automates the creation of a Visual Studio Code workspace file for Python projects. It simplifies the process of configuring Python paths, debugging settings, and environment variables for your workspace. The extension also creates an AI AGENT specific for the Python projects, which can be used to assist with Python development tasks.
- 🧠 Incorporate a AI AGENT for projects.
- 🔍 Automatically scans the workspace for Python files and adds their paths to the workspace configuration.
- 🚫 Excludes specific folders (e.g.,
__pycache__,out,.git) from the workspace. - 📄 Generates a
.envfile with thePYTHONPATHvariable for easy environment configuration to be able to debug any Python script. - 🛠️ Creates a
pyenv.pyscript to manage Python environment paths and execute scripts. - 📝 Generates a
TAcode snippet to automate the Copyright and theTAPython scripts. - 🐞 Configures debugging settings for Python files.
- 🧠 Automatically detects the active Python interpreter.
- Open a Python project in Visual Studio Code.
- Run the
Create Python Environmentcommand from the Command Palette (Ctrl+Shift+PorCmd+Shift+P), orright-clickwithin the Explorer view and selectCreate Python Environmentfrom the context menu. - Run the command from the Command Palette (
Ctrl+Shift+PorCmd+Shift+P) Or right-click on the Explorer view and select the optionCreate Python Environment - The extension will:
- 📂 Create a
<folder name>.code-workspacefile in the root of your workspace. - 🌐 Generate a
.envfile with thePYTHONPATHvariable. - 📝 Create a
pyenv.pyscript in the Python interpreter'sLibdirectory.
- 📂 Create a
- The workspace file will be opened automatically in Visual Studio Code.
- In the chat, look for the TA AGENT as
Python Envselect it and start asking questions about your Python project.
- The agent incorporates the caveman AI specifications, you can select the caveman by typing in the chat:
/caveman full -> (dafault) fragments ok, drop articles, short words. Classic caveman
/caveman lite -> short sentences, no filler, keep grammar
/caveman ultra -> Abbreviate (DB/auth/config/req/res/fn/impl), fragments, abbrev (db/api/req/res/fn), arrows (→), minimal words- At the top of your file, type:
copytfor Python orcopycfor C files. - By taping
libinitthe code snippet will create a template for thePythonscript, which will include the copyright and thePythonclass examples.
Run the following command:
PowerShell
git clone --depth=1 https://github.com/JuanJoseSolorzano/VscodePythonEnvironment.git; C:\LegacyApp\VSCode\bin\code.cmd --install-extension VscodePythonEnvironment/python-environment.vsix; rm -Recurse -Force VscodePythonEnvironmentGit Bash
git clone --depth=1 https://github.com/JuanJoseSolorzano/VscodePythonEnvironment.git && C:\LegacyApp\VSCode\bin\code.cmd --install-extension VscodePythonEnvironment/python-environment.vsix && rm -rf VscodePythonEnvironmentManual Installation
- Download the latest release of the extension from the Releases page.
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing
Ctrl+Shift+X. - Click on the three-dot menu in the top-right corner of the Extensions view and select "Install from VSIX..."
- Navigate to the downloaded
.vsixfile and click "Open" to install the extension.
In the .code-workspace file, you can set the python.analysis.typeCheckingMode property to one of the following values:
off: Disables type checking.basic: Enables basic type checking.strict: Enables strict type checking.
By default, the type checking mode is set to off.
The following folders are excluded from the workspace configuration by default:
out.git.vscode.github__pycache__
You can modify the python-environment.excludedFolders array in the extension settings to customize this behavior:
The extension automatically detects the active Python interpreter using the Python extension (ms-python.python). Ensure the Python extension is installed and activated in your Visual Studio Code.
This project is licensed under the MIT License. See the LICENSE file for details.
Juan Jose Solorzano Carrillo
Copyright (c) 2026

