Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>python-genNew to Visual Studio Code? Get it now.
python-gen

python-gen

Rodrigo Scola

|
12 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

python-gen README

Getting Started

Run the extension from the debug menu. A new visual studio code window should appear on the main.py file.

For context of the current project, click on the Add Context button in the chat.

Configuration

This extension comes with some configuration from the get go. For custom instructions, change custom_prompts in your settings.json.

To change the

To test the code participant

The code participant can use the existing project context to generate or fix code, and using the button on the bottom of the ai response you can execute the code using the python library.

Examples of code tested

  • Script generation and csv manipulation

Prompt: @gen make a script that generates timestamps, booleans, code (random number ), and a name and saves it to input.csv. then another function that if the random number is less than 45 remove the row and for names use the greeting function in the project, save it to output.csv

  • Test Generation for a given function

@gen in the check_number function make test code to make sure that the function will only raise an error when the number is greater than 0.5

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft