News

Python in VS Code Team Is Breaking Up Big Extension

Microsoft's Python in Visual Studio Code dev team has begun to break up its big, super-popular extension into separate tools in the regular monthly update for April 2022.

The team manages the Python extension in the VS Code marketplace, providing IntelliSense, linting, debugging and so on. It's by far the most popular tool in the marketplace with more than 53 million installs, nearly 20 million more than any other extension.

In the April 2022 release post, the team announced the first extension to be separated from the main extension, Pylint.

"Our team is working towards breaking the tools support we offer in the Python extension into separate extensions, with the intent of improving performance, stability and no longer requiring the tools to be installed in a Python environment -- as they can be shipped alongside an extension," said Karthik Nadig. "The first one we started to work on is Pylint."

As its name suggests, the tool provides linting functionality, the highlighting of syntactical and stylistic problems in Python source code in order to help coders identify and correct subtle programming errors or possibly error-prone unconventional coding practices.

Pylint in Action
[Click on image for larger, animated GIF view.] Pylint in Action (source: Microsoft).

It's unclear just how many such tools are bundled into the main Python extension or how many will be separated out, but documentation shows that Pylint is among the various projects the tool is integrated with:

  • Debugging support: Django, Flask, gevent, Jinja, Pyramid, PySpark, Scrapy, Watson
  • Formatting: autopep8, black, yapf
  • Interpreter support: conda, direnv, pipenv, poetry, pyenv, venv, virtualenv
  • Linting: bandit, flake8, mypy, prospector, pylint, pydocstyle, pylama
  • Testing: pytest, unittest

Other highlights of the latest update include:

  • Interpreter display in the status bar moved to the right: The selected interpreter version display was moved toward the right side in the status bar, next to the language status item Python. To avoid cluttering up the status bar, it only appears when a Python or a settings.json file is open.
  • Simpler way to create empty Python and Jupyter Notebook files: Developers can use the "File: Create New ..." command in the command palette to create empty Python or Jupyter notebook files. The same functionality comes with clicking on "New File ..." from VS Code's welcome page.
  • Fix for running and debugging files with conda environments: Issues that caused a regression when running files in activated conda environments have been fixed.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

  • Introduction to .NET Aspire

    Two Microsoft experts will present on the cloud-native application stack designed to simplify the development of distributed systems in .NET at the Visual Studio Live! developer conference coming to Las Vegas next month.

  • Microsoft Previews Copilot AI for Open-Source Eclipse IDE

    Catering to Java jockeys, Microsoft is yet again expanding the sprawling reach of its Copilot-branded AI assistants, previewing a coding tool for the open-source Eclipse IDE.

Subscribe on YouTube

Upcoming Training Events