Active Hackathon

Microsoft Enhances Editing Experience With Python 2.7 In Visual Studio

Microsoft has included Pylance charged module for renaming; enhanced editing experience and updated debugging with Python 2.7.

Microsoft has announced the December 2021 release of the Python Extension for Visual Studio Code. The announcement includes a Pylance charged module for renaming; an enhanced editing experience when working with virtual or untrusted workspaces; and an update regarding debugging with Python 2.7.

Module rename with change preview: Developers can easily refactor their code using a new rename refactoring experience, via Pylance. In this release of renaming a Python file/module, Pylance will find all the instances that need to be updated and provide a preview of all the changes to be made. To customize the references to be updated, developers can toggle checkboxes at the line or file level at the preview stage before accepting the changes.


Sign up for your weekly dose of what's up in emerging technology.

Rich Python editing experience: The Python extension offers syntax error detection and limited IntelliSense support when using virtual or untrusted workspaces via Pylance. Just like when using or, developers can now take advantage of a series of editing features that they might want while exploring a codebase virtually or inspecting the workspace locally while marking them trusted. These features include semantic highlighting, Syntax errors, code navigation, outline support, function signature help, contextual document highlighting and completions for built-ins, Pylance’s bundled stubs, locally defined symbols in the current file, and symbols in open files.

An update on debugging with Python 2.7: From January 2022, debugpy will no longer run-on Python 2.7. Following last September’s announcement on limited IntelliSense support for Python 2.7, this is the last release with support for debugging locally with Python 2.7. This change should impact only the local experience, and not remote debugging – attaching the debugger to remote processes running in Python 2.7 will still be supported.

Developers have to download the Python extension for Visual Studio Code to try out the above improvements from the Marketplace, or install it directly from the extension gallery in Visual Studio Code.

More Great AIM Stories

Meeta Ramnani
Meeta’s interest lies in finding out real practical applications of technology. At AIM, she writes stories that question the new inventions and the need to develop them. She believes that technology has and will continue to change the world very fast and that it is no more ‘cool’ to be ‘old-school’. If people don’t update themselves with the technology, they will surely be left behind.

Our Upcoming Events

Conference, Virtual
Genpact Analytics Career Day
3rd Sep

Conference, in-person (Bangalore)
Cypher 2022
21-23rd Sep

Conference, in-person (Bangalore)
Machine Learning Developers Summit (MLDS) 2023
19-20th Jan, 2023

Conference, in-person (Bangalore)
Data Engineering Summit (DES) 2023
21st Apr, 2023

Conference, in-person (Bangalore)
MachineCon 2023
23rd Jun, 2023

3 Ways to Join our Community

Discord Server

Stay Connected with a larger ecosystem of data science and ML Professionals

Telegram Channel

Discover special offers, top stories, upcoming events, and more.

Subscribe to our newsletter

Get the latest updates from AIM