Microsoft Dev Blogs

Python in Visual Studio Code – September 2024 Release

thumbnail

Release Notes - September 2024

Django unit test support

  • Users can now discover and run Django unit tests through the Test Explorer.
  • To enable this feature, users need to add an environment variable pointing to the Django application's manage.py file.
  • Users need to create a file at the root of the project and add the path to the application's file.
  • Additional Django test arguments can be added to the file as needed.
  • Users can navigate to the Testing view and select the Refresh Tests button to display Django tests.

Go to definition from inlay hints with Pylance

  • With inlay hints enabled, users can navigate to a type's definition by using Ctrl+Click or hovering over it.

Other Changes and Enhancements

  • Access the VS Code Native REPL for Python from the Command Palette.
  • VS Code Native REPL for Python now starts at the project folder.
  • Strings are now normalized when sending commands to the VS Code Native REPL.
  • Ability to restart the debugger when debugging tests through the debug control widget.

Call for Community Feedback

  • Seeking feedback on a design proposal for test coverage.

How to Try Out the Improvements

  • Download the Python and Jupyter extensions from the Marketplace or install them directly from the extensions view in Visual Studio Code.
  • Learn more about Python support in Visual Studio Code in the documentation.
  • For problems or suggestions, file an issue on the Python VS Code GitHub page.